1 |
> > $ ls -l *.torrent |
2 |
> > ls: invalid option -- [ |
3 |
> > Try `ls --help' for more information. |
4 |
> |
5 |
> Torrent files can have weird names, you probably have one named |
6 |
> "-- [kewl doodz] -- some dodgy file.torrent". The shell is expanding the |
7 |
> wildcard and passing it to ls, which thinks it is an option. The |
8 |
> standard way of avoiding this is to use "ls -l -- *.torrent". The -- |
9 |
> tells ls that there are no more options and everything else is to be |
10 |
> treated as a file. |
11 |
|
12 |
Works perfectly. Thanks Neil. |
13 |
|
14 |
- Grant |
15 |
-- |
16 |
gentoo-user@g.o mailing list |