Path: 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 Date: 12 Jul 89 17:29:06 GMT From: rsalz@bbn.com (Rich Salz) Organization: BBN Systems and Technologies Corporation References: 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