[CentOS] Maybe OT : strange wildcard behaviour

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Oct 25 16:51:26 EDT 2010


ken wrote:
> I'm getting strange stuff too:
>
> $ /bin/ls -l radiolab101510--Fate-and-Fortune.mp3
> -rw-r--r-- 1 zl zl 57144527 Sep 30 16:10
> radiolab101510--Fate-and-Fortune.mp3
> $ /bin/ls -l *.mp3
> /bin/ls: unrecognized option `--Fate-and-Fortune.mp3'
> Try `/bin/ls --help' for more information.
> $ rpm -qf /bin/ls
> coreutils-5.97-23.el5_4.2
>
> (Output of the first command was wrapped by my mailer.)

Try wrapping the filename in single quotes, so that it's not interpreted
by the shell as a flag or option.

       mark



More information about the CentOS mailing list