On 3/3/19 11:53 AM, Martin Schulte wrote:
> Hello,
> 
> with "GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)" I get
> the following behaviour:
> 
> + bash -c 'set -o nounset; echo $x'
> bash: x: unbound variable
> + bash -c 'set -o nounset; echo ${x}'
> bash: x: unbound variable
> + bash -c 'set -o nounset; echo ${x@Q}'
> 
> + bash -c 'set -o nounset; echo ${x/a/b}'
> bash: x: unbound variable
> 
> "GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)" behaves
> identically.
> 
> So, @Q breaks the 'set -o nounset'.
> 
> Is this intended?
It's probably an oversight. I'll look into it. Thanks for the report.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to