bug-coreutils
[Top][All Lists]
Advanced

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

Re: Broken --inverse flag.


From: Eric Blake
Subject: Re: Broken --inverse flag.
Date: Thu, 09 Jul 2009 06:20:51 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666

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

According to Daniel Kersten on 7/9/2009 5:09 AM:
> Hi,
> 
> There appears to be a bug in coreutils. The --inverse flag appears to
> be missing or broken from most utils.

That's not a bug, but a feature request, unless you can point to prior art
of some other implementation that has implemented the option for the
specific tools in question.

> Example:
> 
> $ ps --inverse
> -- ERROR: Unknown gnu long option.

ps is not part of GNU coreutils.  You will need to address this particular
request to a different list.

> $ ls --inverse
> ls: unrecognized option `--inverse'

In ls, it's spelled '--hide', not '--inverse'.  But the feature of
exempting certain patterns from being listed is already present.

> $ rm --inverse foo
> rm: unrecognized option `--inverse'

I could see that it might be useful to call something like
 rm *.c --except foo.c
but it would take someone to write a patch, and it does not scratch my
itch enough for me to be the one to bother doing it.

> $ echo --inverse "hello"
> --inverse hello

Huh?  What's the inverse of printing a string?  I don't think you can come
up with any sane semantics for 'echo --inverse', not to mention that echo
is already in the special category of having a difficult time,
standards-wise, for justifying any command-line options.

> Is this bug fix on the current roadmap? When can I expect it to be fixed?

It's not a bug, and since you are the first to suggest it, there is no
roadmap to include it unless someone wants to contribute a patch.  This is
open source, so feel free to start coding if you want it that badly!

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

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

iEYEARECAAYFAkpV4KMACgkQ84KuGfSFAYD0jACcCIl+YSDNsgw0bmlO7jF7jn5+
NqcAoKfGVPSa8HrMJzfE+luqTi0dVjYc
=EbBN
-----END PGP SIGNATURE-----




reply via email to

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