On Wed, 30 Jan 2002 [EMAIL PROTECTED] wrote: > > No. glob() returns the files that exists, but only if there exists > at least one. > > csh % echo yy* > echo: No match > csh % echo y?y > echo: No match > csh % echo y{a,e,i,o,u,y,}y > yay yey yiy yoy yuy yyy yy
Isn't it to do with whether there are any * or ? wildcards in the expression, rather than whether there is at least one existing file? tcsh % touch yay tcsh % echo y{a,e,i,o,u,}y yay yey yiy yoy yuy yy tcsh % perl -e'print join " ",glob("y{a,e,i,o,u,}y")' yay yey yiy yoy yuy yy -- Stephen Turner, Cambridge, UK http://homepage.ntlworld.com/adelie/stephen/ "This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01