home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15391 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  792 b 

  1. Path: sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!ut-emx!tivoli!TIVOLI.COM!stuart
  2. From: stuart@TIVOLI.COM (Stuart Jarriel)
  3. Newsgroups: comp.sys.hp
  4. Subject: Is HPUX's grep a little broken, or am I?
  5. Message-ID: <8794@tivoli.UUCP>
  6. Date: 27 Jan 93 01:13:14 GMT
  7. Article-I.D.: tivoli.8794
  8. Sender: news@tivoli.UUCP
  9. Organization: Tivoli Systems, Inc
  10. Lines: 19
  11.  
  12. We were just getting into some really fun testing and a question about
  13. grep's behavior popped up.
  14.  
  15. Try to answer this before you try it.
  16.  
  17. does grep need a \n on the input to match a pattern at the end of a
  18. stream?
  19.  
  20. Or, to show the question better:
  21.  
  22. Which grep will find hello?
  23.  
  24. echo "hello" | grep hello
  25. echo "hello\c" | grep hello    (echo -n "hello" | grep hello for the BSDers)
  26.  
  27. This seems broken to me (the HPUX behavior)
  28.  
  29. comments?
  30. stuart
  31.