This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ssbarnea
Recipients r.david.murray, s-wakaba, ssbarnea, vinay.sajip
Date 2017-09-28.23:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:15ssbarneasetrecipients: + ssbarnea, vinay.sajip, r.david.murray, s-wakaba
2017-09-28 23:42:15ssbarneasetmessageid: <>
2017-09-28 23:42:15ssbarnealinkissue25351 messages
2017-09-28 23:42:15ssbarneacreate