Author sorin
Recipients r.david.murray, s-wakaba, sorin, vinay.sajip
Date 2017-09-28.23:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506642135.25.0.706890279559.issue25351@psf.upfronthosting.co.za>
In-reply-to
Content
Based on my tests this worked with all shells I tested with, the syntax being a very old one and not some new/modern one. 

Passed: bash, zsh, dash, ksh
Platforms: MacOS, RHEL Linux

Failed with: tcsh but with the note that even the original code would fail with tcsh anyway. tcsh/csh are not bourne/posix compatible so there is no regression introduced by the the use of "${VAR:-}" syntax.

A simple way to test the syntax with enable shell is:
SHELLCMD -c 'echo "[${AAA:-}]"'
History
Date User Action Args
2017-09-28 23:42:15sorinsetrecipients: + sorin, vinay.sajip, r.david.murray, s-wakaba
2017-09-28 23:42:15sorinsetmessageid: <1506642135.25.0.706890279559.issue25351@psf.upfronthosting.co.za>
2017-09-28 23:42:15sorinlinkissue25351 messages
2017-09-28 23:42:15sorincreate