bug-fileutils
[Top][All Lists]
Advanced

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

Re: Are Options allowed everywhere on the command-line ?


From: Jim Meyering
Subject: Re: Are Options allowed everywhere on the command-line ?
Date: Sat, 15 Dec 2001 00:22:23 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu)

Claus Rasmussen <address@hidden> wrote:
> I have noticed that all the programs in the fileutils 4.1 package accept
> options everywhere on the commandline. I have browsed the info-documenta-
> tion for any indication of the desired behaviour but in vain.
>
> Example:
>
>         > mkdir test
>         > cd test
>         > touch -- -l foo bar           # Make some files
>         > ls
>
>         bar  foo  -l
>
>         > ls bar foo -l
>
>         -rw-rw-r--    1 clr      clr             0 Dec 14 11:13 bar
>         -rw-rw-r--    1 clr      clr             0 Dec 14 11:13 foo
>
> If this really is a bug (and not a "feature" :-), I would gladly volunter
> to submit a diff correcting the problem.

It's a feature.
You can use the same technique for ls that you used for touch:

  ls -- bar foo -l

or this:

  ls bar foo ./-l



reply via email to

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