Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Wildcards stopped working
Date: Wed, 30 May 2007 15:07:38
Message-Id: 49bf44f10705300801t612d35d8p3e92d8baf1e6741@mail.gmail.com
In Reply to: Re: [gentoo-user] Wildcards stopped working by Neil Bothwick
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