On Wed, 30 May 2007 07:25:51 -0700, Grant wrote:

> $ 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.


-- 
Neil Bothwick

"Bother," said Pooh, as the pin fell out of the grenade.

Attachment: signature.asc
Description: PGP signature

Reply via email to