bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Files starting with Dash.


From: Stepan Kasal
Subject: Re: Files starting with Dash.
Date: Fri, 21 Nov 2003 16:27:44 +0100
User-agent: Mutt/1.4.1i

Dobry den (Czech is almost like Polish ;-),

        thank you very much for sending the bug report.
We, the developpers, value high users who take care to report the bug
instead of keeping the problem secret.

On Fri, Nov 21, 2003 at 02:34:50PM +0000, Marcin Kowalski wrote:
> address@hidden /var/spool/cv/0/0/0> ls
> -1009514941.doc  -1378383905.doc  -1572047709.doc  -1848877519.doc  
...
> address@hidden /var/spool/cv/0/0/0> ls -*
> ls: invalid option -- 0

This time, it's not a bug, it's a feature.  Most unix-like utilities
take each parameter starting with ``-'' as an option.

You have to type ``ls -- -*'' to tell ls that the parameters following
the ``--'' mark are not options.

> address@hidden /var/spool/cv/0/0/0> ls \-*
> ls: invalid option -- 0

This cannot help, as the shell processes ``\-*'' which results into
``-*'' and then into the list of the files.
ls cannot know that there was a backslash in earlier phases of
command-line processing.

Have a nice day,
        Stepan Kasal




reply via email to

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