🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #73

parameter substitution (bash 0.99)

#73
From: Andy Fyfe
Date: Tue, 13 Jun 1989 20:54
6 lines
589 bytes
Given
	X=
	echo ${X:-abcd}
bash will echo "", while /bin/sh (sun, 3b1) and /bin/ksh (3b1) will
echo "abcd".  The man pages talk about varibles being "set and non-null"
or "not set or null".
Technical Details
Message-ID: <8906132054.AA07686@csvax.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CSVAX.CALTECH.EDU!andy
From: andy@CSVAX.CALTECH.EDU (Andy Fyfe)
Newsgroups: gnu.bash.bug
Subject: parameter substitution (bash 0.99)
Message-ID: <8906132054.AA07686@csvax.caltech.edu>
Date: 13 Jun 89 20:54:43 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 6