bug-coreutils
[Top][All Lists]
Advanced

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

Re: Broken --inverse flag.


From: Pádraig Brady
Subject: Re: Broken --inverse flag.
Date: Thu, 9 Jul 2009 13:39:35 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Daniel Kersten wrote:
> Hi,
> 
> There appears to be a bug in coreutils. The --inverse flag appears to
> be missing or broken from most utils.

Hi Daniel,
I see you're on the drink again.

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

not a coreutil

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

Note the globbing is done by the shell before passing to ls.
Note find has internal globbing: find -maxdepth 1 ! -name "whatever" -ls

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

Again find is probably more appropriate here?
find ... | xargs rm

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

That one makes sense.

$ echo --inverse "hello"
oןןǝɥ

We can code that one together in the pub.

cheers,
Pádraig.




reply via email to

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