[CentOS] Maybe OT : strange wildcard behaviour

Stephen Harris lists at spuddy.org
Mon Oct 25 16:42:28 EDT 2010


On Mon, Oct 25, 2010 at 04:38:15PM -0400, 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'

You have a file begining with a - sign and this is expanding on
the comamnd line.


Do "ls -l -- *.mp3" to be safe

-- 

rgds
Stephen


More information about the CentOS mailing list