I have to chime in here and say that I love the user and hostnames.<br><br><i>Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn! </i><i>Cthulhu </i><i>fhtagn!!</i><br><br>Message: 4<br>Date: Thu, 20 Dec 2007 11:28:16 -0600
<br>From: Major Stubble <<a href="mailto:major.stubble@gmail.com">major.stubble@gmail.com</a>><br>Subject: Re: [Cialug] [OT]: Shell script globbing<br>To: Central Iowa Linux Users Group <<a href="mailto:cialug@cialug.org">
cialug@cialug.org</a>><br>Message-ID: <<a href="mailto:DF38D415-1038-4C41-8108-69F0830DEC87@gmail.com">DF38D415-1038-4C41-8108-69F0830DEC87@gmail.com</a>><br>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
<br><br>What shell are you using?<br><br>ksh doesn't seem to have any issue with your first attempt:<br><br>cthulu@rlyeh> touch file.bad<br>cthulu@rlyeh> if [ -e *.bad ]; then echo bad; fi;<br>bad<br>cthulu@rlyeh
> touch file2.bad<br>cthulu@rlyeh> touch file3.bad<br>cthulu@rlyeh> if [ -e *.bad ]; then echo bad; fi;<br>bad<br>cthulu@rlyeh> echo $SHELL<br>/bin/ksh