Message303289
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:-}]"' |
|
Date |
User |
Action |
Args |
2017-09-28 23:42:15 | ssbarnea | set | recipients:
+ ssbarnea, vinay.sajip, r.david.murray, s-wakaba |
2017-09-28 23:42:15 | ssbarnea | set | messageid: <1506642135.25.0.706890279559.issue25351@psf.upfronthosting.co.za> |
2017-09-28 23:42:15 | ssbarnea | link | issue25351 messages |
2017-09-28 23:42:15 | ssbarnea | create | |
|