Jari Aalto <[EMAIL PROTECTED]> writes:

> Consider this:
>
>     $ gzip -dc edb_1.21-13.diff.gz | grep -eF '--- '

This is the same as "... | grep -e F '--- '

> It should be possible to combine short options together, including -e.

"-e" takes an argument, that must follow immediately (either directly or
as the next argument).  That's how getopt works for every other utility,
and how POSIX requires that option arguments are handled (see
<http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html>).

> I understand that the -e is a modifier, like -F is a modifier for the
> next argument that follows.

"-F" does take an argument.  It is an option on its own, modifying the
operation of the utility.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to