[Cialug] [Even more OT][OT]: Shell script globbing

Jeff Chapin chapinjeff at gmail.com
Thu Dec 20 15:51:29 CST 2007


 I have to chime in here and say that I love the user and hostnames.

*Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn! **Cthulhu **fhtagn!!*

Message: 4
Date: Thu, 20 Dec 2007 11:28:16 -0600
From: Major Stubble <major.stubble at gmail.com>
Subject: Re: [Cialug] [OT]: Shell script globbing
To: Central Iowa Linux Users Group <cialug at cialug.org>
Message-ID: <DF38D415-1038-4C41-8108-69F0830DEC87 at gmail.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

What shell are you using?

ksh doesn't seem to have any issue with your first attempt:

cthulu at rlyeh> touch file.bad
cthulu at rlyeh> if [ -e *.bad ]; then echo bad; fi;
bad
cthulu at rlyeh> touch file2.bad
cthulu at rlyeh> touch file3.bad
cthulu at rlyeh> if [ -e *.bad ]; then echo bad; fi;
bad
cthulu at rlyeh> echo $SHELL
/bin/ksh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20071220/c1d62657/attachment.html


More information about the Cialug mailing list