Article View: gnu.bash.bug
Article #490parameter test
From: Jeff Barratt
Date: Wed, 23 Aug 1989 16:54
Date: Wed, 23 Aug 1989 16:54
17 lines
801 bytes
801 bytes
Bash Version 1.02
Sun OS-4.0.1, Sun 3/50
Problem:
Improper action from parameter test. A parameter that doesn't exist
causes exit from the shell, rather than executing the "action".
Example on machine "dash". Parameter ZIP does not exist:
dash$ : ${ZIP:?"No ZIP here"}
shell exits
----------------------
barratt@dash.mitre.org
I will not be pushed, filed,
stamped, indexed, briefed,
debriefed or numbered.
- The Prisoner
Technical Details
Message-ID:
<8908231654.AA10031@dash.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!DASH.MITRE.ORG!barrattShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!DASH.MITRE.ORG!barratt From: barratt@DASH.MITRE.ORG (Jeff Barratt) Newsgroups: gnu.bash.bug Subject: parameter test Message-ID: <8908231654.AA10031@dash.mitre.org> Date: 23 Aug 89 16:54:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17