🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #307

Re: Bug/Feature in globbing

#307
From: Chet Ramey
Date: Wed, 12 Jul 1989 23:11
25 lines
1591 bytes
In article <WWC.89Jul12082231@boole.ece.wisc.edu> wwc@boole.ece.wisc.edu (William W. Carlson) writes:

? Whenever globbing fails (i.e. no match), it leaves the
? unglobbed string as is.  (i.e. if I type "ls foo* bar*" and there is a
? file in the current directory called foo.c but none starting with
? "bar", ls gets passed "ls foo.c bar*" and of course says "bar* not
? found."  This feature is particularly disturbing in aliases.  Do
? people think this is a "bug" or a "feature"?  If it is a bug, I'd
? really like it fixed.  If it is a feature, I'd like for there to be
? some way (perhaps set -no_bogus_globbing) to disable it.


This is because (all together now) BASH IS NOT CSH! It is a
POSIX-style/Bourne Shell clone.  Bourne-style shells leave a word
unchanged if it expands into nothing. 

I vote to keep it, in the interest of sh compatibility.

Chet


Chet Ramey			"We are preparing to think about contemplating 
Network Services Group, CWRU	 preliminary work on plans to develop a
chet@cwjcc.INS.CWRU.Edu		 schedule for producing the 10th Edition of 
				 the Unix Programmers Manual." -- Andrew Hume
Technical Details
Message-ID: <421@cwjcc.CWRU.Edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!kiwi!chet
References: <WWC.89Jul12082231@boole.ece.wisc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!kiwi!chet
From: chet@kiwi.CWRU.EDU (Chet Ramey)
Newsgroups: gnu.bash.bug
Subject: Re: Bug/Feature in globbing
Message-ID: <421@cwjcc.CWRU.Edu>
Date: 12 Jul 89 23:11:37 GMT
References: <WWC.89Jul12082231@boole.ece.wisc.edu>
Sender: news@cwjcc.CWRU.Edu
Reply-To: chet@kiwi.INS.CWRU.Edu (Chet Ramey)
Distribution: gnu
Organization: CWRU Andrew R. Jennings Computing Center
Lines: 25