Your message dated Mon, 5 Apr 2010 15:23:20 +1000
with message-id <[email protected]>
and subject line Re: Bug#435411: grep: Option -e cannot be combined with other 
options
has caused the Debian Bug report #435411,
regarding grep: Option -e cannot be combined with other options
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
435411: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435411
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.5.1.ds2-6
Severity: normal


Consider this:

    $ gzip -dc edb_1.21-13.diff.gz | grep -eF '--- '
    grep: unrecognized option `--- '
    Usage: grep [OPTION]... PATTERN [FILE]...
    Try `grep --help' for more information.

    $ gzip -dc edb_1.21-13.diff.gz | grep -F -e '--- '
    --- edb-1.21.orig/debian/dirs
    --- edb-1.21.orig/debian/docs
    ...

PROBLEM

It should be possible to combine short options together, including -e.
The effect of "e" could be postponed until the current option "goup". 
An example:

        -eF

That should be equal to

       -Fe

Likewise with any number of other options "grouped", like:

        -iFe
        -eFi
        ...

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

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  libc6                         2.6-2      GNU C Library: Shared libraries

grep recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 2.5.1.ds2-6

On Wed, Aug 01, 2007 at 12:39:07AM +0200, Andreas Schwab wrote:
>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.

On Sat, Aug 04, 2007 at 01:45:42PM -0300, Tony Abou-Assaleh wrote:
>According the man page, -e expects a pattern following it as an
>argument to the option. Therefore, -eF is incorrect as it doesn't
>follow the syntax specification. And there is no easy way to make sense
>out of a syntax that would allow -eF, since multiple -e options are
>allowed.

Closing this bug report accordingly.


--- End Message ---

Reply via email to