diff options
author | Bart Schaefer <schaefer@ipost.com> | 2021-04-18 14:26:12 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@ipost.com> | 2021-04-18 14:26:12 -0700 |
commit | 71b747567e350c5f849897c424ea76fd05b34ffe (patch) | |
tree | 71ac096df68a13309adf4abffcd6a31ebcc67200 /Test | |
parent | 82ff9f24f170eea7daa935fdaa09ab75a2f277ff (diff) | |
download | zsh-71b747567e350c5f849897c424ea76fd05b34ffe.tar.gz zsh-71b747567e350c5f849897c424ea76fd05b34ffe.tar.xz zsh-71b747567e350c5f849897c424ea76fd05b34ffe.zip |
47704: POSIX export and readonly ignore "-p" when parameter names also appear
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B02typeset.ztst | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index e7bf93794..8b3988151 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -620,7 +620,7 @@ print ${+pbro} >&2 (typeset -g pbro=3) (pbro=4) - readonly -p pbro >&2 # shows up as "readonly" although unset + readonly -p >&2 # shows up as "readonly" although unset typeset -gr pbro # idempotent (no error)... print ${+pbro} >&2 # ...so still readonly... typeset -g +r pbro # ...can't turn it off @@ -1050,23 +1050,21 @@ $ZTST_testdir/../Src/zsh --emulate sh -f -c ' PATH=/bin; export PATH; readonly PATH - export -p PATH + export -p PATH # Should be a no-op, -p ignored typeset -p PATH readonly -p' 0: readonly/export output for exported+readonly+special when started as sh ->export PATH=/bin >export -r PATH=/bin >readonly PATH=/bin function { emulate -L sh MANPATH=/bin; export MANPATH; readonly MANPATH - export -p MANPATH + export -p MANPATH # Should be a no-op, -p ignored typeset -p MANPATH readonly -p } 0: readonly/export output for exported+readonly+tied+special after switching to sh emulation ->export MANPATH=/bin >export -rT MANPATH manpath=( /bin ) >readonly MANPATH=/bin |