Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!cbnewse!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.unix.shell Subject: Re: Bourne-shell incompatibilities Message-ID: Date: 6 Jan 91 17:41:57 GMT References: <18476@shlump.nac.dec.com> <3074@wyse.wyse.com> <442@minya.UUCP> Sender: danj1@cbnewse.att.com (Dan Jacobson) Reply-To: danj1@ihlpa.att.com Organization: AT&T-BL, Naperville IL, USA Lines: 14 In-Reply-To: jc@minya.UUCP's message of 5 Jan 91 14:35:27 GMT >>>>> On 5 Jan 91 14:35:27 GMT, jc@minya.UUCP (John Chambers) said: John> ${x-foo} John> versus: John> ${x:-foo} John> Often only one of these is accepted by any particular /bin/sh, and the John> other is a syntax error. My understanding is that the first should always work, and the second should work in newer /bin/sh's with this added bonus feature [BSD 4.3 /bin/sh doesn't accept it, like you mentioned]. -- Dan_Jacobson@ATT.COM Naperville IL USA +1 708-979-6364