🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #1107

:${abc?abc} exits

#1107
From: Brian Fox
Date: Fri, 05 Jan 1990 18:36
28 lines
1059 bytes
   Posted-Date: Fri, 05 Jan 90 12:40:29 EST
   From: ramsdell@linus.mitre.org
   Date: Fri, 05 Jan 90 12:40:29 EST

   bash$ :${abc?abc}
   abc: bad substitution
   bash$ :${abc?abc}
   abc

   Process shell exited abnormally with code 1
   #### Here is what sh does:
   bash$ sh
   $ :${abc?abc}
   abc: abc
   $ 
   ------------------------
   John

Uh, I guess this is fixed, since my shell doesn't exit.  However, I
changed the output to include the variable name from the left.

Why did you type the ":" in front of everything?  Maybe you meant

	${abc:?abc}

???
Brian
Technical Details
Message-ID: <9001051836.AA03895@sbphy.Ucsb.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!sbphy.ai.mit.edu!bfox
References: <9001051740.AA12934@huxley.mitre.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!sbphy.ai.mit.edu!bfox
From: bfox@sbphy.ai.mit.edu (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: :${abc?abc} exits
Message-ID: <9001051836.AA03895@sbphy.Ucsb.EDU>
Date: 5 Jan 90 18:36:33 GMT
References: <9001051740.AA12934@huxley.mitre.org>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bfox@ai.mit.edu
Distribution: gnu
Organization: GNUs
Lines: 28