MLUG: RE: [MLUG] ls features
RE: [MLUG] ls features
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 21 Oct 2004, Spurling, Shannon wrote:

> Okay, I confirmed that it is a shell option by asking a very 
> knowledgeable co-worker. He looked it up and you can use the following 
> command to disable case for wild card expansion in BASH:
>
> shopt -s nocaseglob

Yep, it works!

That must mean that it is possible to write a bash script that will do 
case-insensitive ls commands.  Don't you think?


> Also, as an example of what ls * is actually doing, do the following....
>
> echo *
>
> Interesting.... :-)

I agree.  I had no idea that's what would happen until you brought it up.


> ls is not for finding files, it's for listing the contents of the 
> current directory.

Or other directories, or recursively up the tree.

Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members