diff options
author | Chet Ramey <chet.ramey@case.edu> | 2018-03-19 09:46:55 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2018-03-19 09:46:55 -0400 |
commit | f602026a0ce28409c8953e2d1eae8ee1021b68fb (patch) | |
tree | b6d6661835947f28dfd4ceb5175abd4db49b02ec /tests/errors6.sub | |
parent | bf5b8103d466fdbc3bfcdaa5e21a0d0c0dce7cba (diff) | |
download | bash-f602026a0ce28409c8953e2d1eae8ee1021b68fb.tar.gz |
commit bash-20180316 snapshot
Diffstat (limited to 'tests/errors6.sub')
-rw-r--r-- | tests/errors6.sub | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errors6.sub b/tests/errors6.sub index c08d41f1..b80580e7 100644 --- a/tests/errors6.sub +++ b/tests/errors6.sub @@ -29,3 +29,15 @@ echo after indir: $? function ivar() { echo -n "${!1:-${1}}"; } ivar -3 + +foo=bar +echo ${!foo} +echo ${!foo:-unset} + +echo ${!var:-unset} +echo ${!var+unset} + +foo=invalid-ident +echo ${!foo} +echo ${!foo:-unset} +echo ${!foo+unset} |