[gentoo-user] Wildcards stopped working

2007-05-30 Thread Grant

I routinely use commands like this:

ls -l *.torrent

but today I get this:

$ ls -l *.torrent
ls: invalid option -- [
Try `ls --help' for more information.

I get similar results when trying to use wildcards with scp.  Did an
update change this behavior for anyone else?

- Grant
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Wildcards stopped working

2007-05-30 Thread Alan McKinnon
On Wednesday 30 May 2007, Grant wrote:
 I routinely use commands like this:

 ls -l *.torrent

 but today I get this:

 $ ls -l *.torrent
 ls: invalid option -- [
 Try `ls --help' for more information.

 I get similar results when trying to use wildcards with scp.  Did an
 update change this behavior for anyone else?

You probably have a dodgy alias with a [ in it

See if '/bin/ls -l *.torrent' gives different results. If so, check 
what 'alias ls' returns

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Wildcards stopped working

2007-05-30 Thread Neil Bothwick
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.


signature.asc
Description: PGP signature


Re: [gentoo-user] Wildcards stopped working

2007-05-30 Thread Grant

 I routinely use commands like this:

 ls -l *.torrent

 but today I get this:

 $ ls -l *.torrent
 ls: invalid option -- [
 Try `ls --help' for more information.

 I get similar results when trying to use wildcards with scp.  Did an
 update change this behavior for anyone else?

You probably have a dodgy alias with a [ in it

See if '/bin/ls -l *.torrent' gives different results. If so, check
what 'alias ls' returns


Hi Alan,

I get:

$ /bin/ls -l *.torrent
/bin/ls: invalid option -- [
Try `/bin/ls --help' for more information.
$ alias ls
alias ls='ls --color=auto'

Gimp stopped working last night too.

- Grant
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Wildcards stopped working

2007-05-30 Thread Grant

 $ 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
--
[EMAIL PROTECTED] mailing list