🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #305

Bug/Feature in globbing

#305
From: Brian Fox
Date: Wed, 12 Jul 1989 18:35
30 lines
1328 bytes
   Date: 12 Jul 89 17:29:06 GMT
   From: rsalz@bbn.com  (Rich Salz)
   Organization: BBN Systems and Technologies Corporation
   References: <WWC.89Jul12082231@boole.ece.wisc.edu>
   Sender: bug-bash-request@prep.ai.mit.edu

   Given a directory with the two files "virus" and "very" in it, then
	   echo v* z*
   will do the following for sh
	   very virus z*
   and it will do the following for csh
	   very virus
   if you do "set nonomatch" in csh, then you'll get the sh behavior.
   -- 
   Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
   Use a domain-based address or give alternate paths, or you may lose out.

In csh, without `nonomatch' set, (note this could mean typing "unset
nonomatch"!), then

	echo z*
	  -> echo: no match
but
	echo v* z*
	  -> very virus

This is ambiguous behaviour in my opinion.

Brian Fox
Technical Details
Message-ID: <8907121835.AA02530@aurel.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
References: <1897@prune.bbn.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
From: bfox@AUREL.CALTECH.EDU (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: Bug/Feature in globbing
Message-ID: <8907121835.AA02530@aurel.caltech.edu>
Date: 12 Jul 89 18:35:29 GMT
References: <1897@prune.bbn.com>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bfox@aurel.caltech.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 30