Sorin Sbarnea <sorin.sbar...@gmail.com> added the comment:

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:-}]"'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue25351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to