🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #322

File Name Globbing

#322
From: James Buster
Date: Fri, 14 Jul 1989 19:15
31 lines
1397 bytes
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
--------------------------------------------
Technical Details
Message-ID: <BITBUG.89Jul14121502@lonewolf.sun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!newstop!sun!bitbug

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <BITBUG.89Jul14121502@lonewolf.sun.com>
Date: 14 Jul 89 19:15:02 GMT
Sender: news@sun.Eng.Sun.COM
Distribution: gnu
Organization: Sun Microsystems Federal, Inc.
Lines: 31