Path: 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 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