mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
tests/attributes.sh: add reproducer from rhbz#903750 (already fixed in 93u+)
This commit is contained in:
parent
ba752034c0
commit
7303824789
1 changed files with 7 additions and 0 deletions
|
@ -312,6 +312,13 @@ EOF
|
||||||
EOF
|
EOF
|
||||||
} 2> /dev/null || err_exit 'typeset -R should not preserve old attributes'
|
} 2> /dev/null || err_exit 'typeset -R should not preserve old attributes'
|
||||||
|
|
||||||
|
unset x
|
||||||
|
typeset -R 3 x
|
||||||
|
x=12345
|
||||||
|
x=9876
|
||||||
|
[[ $x == 876 ]] || err_exit "typeset -R not working with reassignment (expected 876, got $x)"
|
||||||
|
unset x
|
||||||
|
|
||||||
expected='YWJjZGVmZ2hpag=='
|
expected='YWJjZGVmZ2hpag=='
|
||||||
unset foo
|
unset foo
|
||||||
typeset -b -Z10 foo
|
typeset -b -Z10 foo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue