Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!newstop!sun!bitbug From: bitbug@lonewolf.sun.com (James Buster) Newsgroups: gnu.bash.bug Subject: File Name Globbing Message-ID: Date: 14 Jul 89 19:15:02 GMT Sender: news@sun.Eng.Sun.COM Distribution: gnu Organization: Sun Microsystems Federal, Inc. Lines: 31 It seems what is desired is a variable that toggles globbing between one of two behaviors: The result of a globbing operation that fails causes the shell to return the filename substitution pattern, rather than an error, if the pattern is not matched, i.e. sh> echo *.d *.d sh> *or* a globbing operation that fails causes the shell to print a diagnostic and stop processing the current command or script, i.e. csh> echo *.d echo: No match. csh> Being able to toggle this behavior is, I believe, a desirable thing. The first style of behavior should probably be the default, but for those who want the shell to warn them of errors, the second could be done by setting a variable, such as `nomatch'. Note that 4.3 csh uses the `nonomatch' variable to cause the first style of behavior to occur. -- -------------------------------------------- James Buster Mad Hacker Extraordinaire bitbug@lonewolf.sun.com sun.com!lonewolf!bitbug --------------------------------------------