Hi, On Sat, 05 Dec 2015 08:03:32 +0900, Nicholas Bamber wrote: > It is not releveant how this works in other shells (or even other > versions of ksh). All that matters is whether this syntax is defined by the > POSIX standard. It's not even documented as a bash feature let alone a POSIX > standard.
The POSIX standard defines ${parameter+word} behavior: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02 and old ksh 93s+20080202-1 (Debian jessie, squeeze) behaves as I and POSIX standard expected. > It may be of interest to you to be reminded that this version of ksh is > dead upstream, so even if I agreed it really was a problem it is very > possible the most I would do is tag it confirmed. > > As it is I believe you are trying to use an undocumented syntax that > just happens to do something you like in lots of other shells. I would > however be interested to know what YOU think the "${v+set}" syntax should do. No. I use the documented syntax. Regards, -- -- Name: SATOH Fumiyasu @ OSS Technology Corp. (fumiyas @ osstech co jp) -- Business Home: http://www.OSSTech.co.jp/ -- GitHub Home: https://GitHub.com/fumiyas/ -- PGP Fingerprint: BBE1 A1C9 525A 292E 6729 CDEC ADC2 9DCA 5E1C CBCA