Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread Brunner, Brian T.
$ ls -d /tmp/[A-Z]* Works as expected here. Can anybody offer an explanation for this curious behaviour ? Try: alias ls (to see if you're getting invisible flags enabled) /bin/ls -d /tmp/[A-Z]* (to try the command without such)

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread ken
I'm getting strange stuff too: $ /bin/ls -l radiolab101510--Fate-and-Fortune.mp3 -rw-r--r-- 1 zl zl 57144527 Sep 30 16:10 radiolab101510--Fate-and-Fortune.mp3 $ /bin/ls -l *.mp3 /bin/ls: unrecognized option `--Fate-and-Fortune.mp3' Try `/bin/ls --help' for more information. $ rpm -qf /bin/ls

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread Stephen Harris
On Mon, Oct 25, 2010 at 04:38:15PM -0400, ken wrote: I'm getting strange stuff too: $ /bin/ls -l radiolab101510--Fate-and-Fortune.mp3 -rw-r--r-- 1 zl zl 57144527 Sep 30 16:10 radiolab101510--Fate-and-Fortune.mp3 $ /bin/ls -l *.mp3 /bin/ls: unrecognized option `--Fate-and-Fortune.mp3' You

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread m . roth
ken wrote: I'm getting strange stuff too: $ /bin/ls -l radiolab101510--Fate-and-Fortune.mp3 -rw-r--r-- 1 zl zl 57144527 Sep 30 16:10 radiolab101510--Fate-and-Fortune.mp3 $ /bin/ls -l *.mp3 /bin/ls: unrecognized option `--Fate-and-Fortune.mp3' Try `/bin/ls --help' for more information. $

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread Gordon Messmer
On 10/25/2010 01:51 PM, m.r...@5-cent.us wrote: Try wrapping the filename in single quotes, so that it's not interpreted by the shell as a flag or option. Wrapping a filename in quotes doesn't prevent it from being interpreted as a flag or option.

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread Gary Greene
On 25/10/10 5:37 PM, Gordon Messmer yiny...@eburg.com wrote: On 10/25/2010 01:51 PM, m.r...@5-cent.us wrote: Try wrapping the filename in single quotes, so that it's not interpreted by the shell as a flag or option. Wrapping a filename in quotes doesn't prevent it from being interpreted as

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-25 Thread cpolish
If the app supports it (most good GNU like apps do) you need the double dash option which will end option processing (ls -l -- -my_stupid_file.foo-) A script to rename files with unhelpful names: #! /bin/bash # Rename files by choosing from a menu C. Polisher 2003/04/21 ls -i echo -n Enter

[CentOS] Maybe OT : strange wildcard behaviour

2010-10-24 Thread Niki Kovacs
Hi, I'm currently working through some basic HOWTOS (Linux Fundamentals 1-4 by Gentoo founder Daniel Robbins) on a CentOS 5.5 server, just to keep in shape. I've just noticed a curious wildcard behaviour, which I can't really explain. Let's say I wanted to list all the files or directories in

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-24 Thread Nicolas Thierry-Mieg
Niki Kovacs wrote: Hi, I'm currently working through some basic HOWTOS (Linux Fundamentals 1-4 by Gentoo founder Daniel Robbins) on a CentOS 5.5 server, just to keep in shape. I've just noticed a curious wildcard behaviour, which I can't really explain. Let's say I wanted to list all the

Re: [CentOS] Maybe OT : strange wildcard behaviour

2010-10-24 Thread Gordon Messmer
On 10/24/2010 04:53 AM, Nicolas Thierry-Mieg wrote: probably expected behavior, depending on your locale. google for LC_COLLATE. And you can read more in 'man 7 locale'. ___ CentOS mailing list CentOS@centos.org