home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!ut-emx!tivoli!TIVOLI.COM!stuart
- From: stuart@TIVOLI.COM (Stuart Jarriel)
- Newsgroups: comp.sys.hp
- Subject: Is HPUX's grep a little broken, or am I?
- Message-ID: <8794@tivoli.UUCP>
- Date: 27 Jan 93 01:13:14 GMT
- Article-I.D.: tivoli.8794
- Sender: news@tivoli.UUCP
- Organization: Tivoli Systems, Inc
- Lines: 19
-
- We were just getting into some really fun testing and a question about
- grep's behavior popped up.
-
- Try to answer this before you try it.
-
- does grep need a \n on the input to match a pattern at the end of a
- stream?
-
- Or, to show the question better:
-
- Which grep will find hello?
-
- echo "hello" | grep hello
- echo "hello\c" | grep hello (echo -n "hello" | grep hello for the BSDers)
-
- This seems broken to me (the HPUX behavior)
-
- comments?
- stuart
-