|
| | Subject: | Re: Wildcards stopped working | | Group: | Gentoo-user | | From: | Grant | | Date: | 30 May 2007 |
> > $ ls -l *.torrent
> > ls: invalid option -- [
> > Try `ls --help' for more information.
>
> Torrent files can have weird names, you probably have one named
> "-- [kewl doodz] -- some dodgy file.torrent". The shell is expanding the
> wildcard and passing it to ls, which thinks it is an option. The
> standard way of avoiding this is to use "ls -l -- *.torrent". The --
> tells ls that there are no more options and everything else is to be
> treated as a file.
Works perfectly. Thanks Neil.
- Grant
--
gentoo-user mailing list
|