summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-02-09 10:15:16 -0500
committerChet Ramey <chet.ramey@case.edu>2022-02-09 10:15:16 -0500
commit780d665cfd32f8f3b28731d5b51fed5eacd7f4d4 (patch)
tree40f2027f15daeaba0308d3adb2453ae1d4f48a6f /tests
parentb325b0e96bd05c76bbfc4d60d0707fc93d58f03f (diff)
downloadbash-780d665cfd32f8f3b28731d5b51fed5eacd7f4d4.tar.gz
fix to multiple alias expansion problem in command substitutions
Diffstat (limited to 'tests')
-rw-r--r--tests/comsub5.sub4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/comsub5.sub b/tests/comsub5.sub
index 1ec41645..48bf62d4 100644
--- a/tests/comsub5.sub
+++ b/tests/comsub5.sub
@@ -13,9 +13,11 @@
#
# this is a new feature: expanding aliases when initially parsing command
-# substitutions
+# substitutions. required by posix, so enabled in posix mode. default mode
+# stays backwards compatible.
shopt -s expand_aliases
+set -o posix
alias switch=case