bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: man grep


From: Eric Blake
Subject: Re: man grep
Date: Tue, 05 Feb 2008 06:10:27 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Wim Sturkenboom on 2/4/2008 10:02 PM:
| man grep mentions --line-buffering
| however, running grep with this option gives an error 'unrecognized
| option'
| the correct option seems to be --line-buffered

This has been previously reported and fixed in CVS.

| the man pages state that egrep is the same as grep -e. I however can't
| figure out how unless -e is the default behaviour of grep.
| On the above slackware box, /usr/bin/egrep is a link to /bin/egrep which
| in turn is a link to /bin/grep. Nowhere the -e option comes into play.
| Is -e indeed the default behaviour or do I miss something?

You missed the fact that argv[0] recalls the name of the binary being
executed.  In other words, grep violates GNU Coding standards (which say
that a binary should behave independently of the name it was called by) in
order to implicitly turn on -e if invoked by the name 'egrep'.

| Information contained in any e-mail or attachment from Multichoice
Africa (Pty) Ltd (“MCA”) is confidential

Unfortunately you posted to a publicly-archived mailing list, where such
disclaimers are impossible to enforce.  In the future, it would be wise to
post from an alternate account that does not have such meaningless
trailers appended on after the fact, since some people refuse on principle
to reply to such mails.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqGBD84KuGfSFAYARAmfHAJ9/tQSyADNoNKw2Q/nyHQiF/VkqbwCgv/8J
pjqPYeppnJuBkY4TIBZtL6w=
=eXC9
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]