summaryrefslogtreecommitdiffstats
path: root/tests/alias3.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/alias3.sub11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/alias3.sub b/tests/alias3.sub
new file mode 100644
index 0000000..304e926
--- /dev/null
+++ b/tests/alias3.sub
@@ -0,0 +1,11 @@
+shopt -s expand_aliases
+alias foo='oneword'
+foo_word='foo'
+#
+# Fails silently to match 'foo':
+#
+case "$foo_word"
+in
+ foo) ;;
+ *) echo bad 1;;
+esac