summaryrefslogtreecommitdiff
path: root/tests/assoc2.sub
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2009-01-12 13:36:28 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:47:00 +0000
commit3185942a5234e26ab13fa02f9c51d340cec514f8 (patch)
tree2c6fcd01779faef1f91c5d84d63981ca3479137d /tests/assoc2.sub
parentf1be666c7d78939ad775078d290bec2758fa29a2 (diff)
downloadbash-3185942a5234e26ab13fa02f9c51d340cec514f8.tar.gz
Imported from ../bash-4.0-rc1.tar.gz.
Diffstat (limited to 'tests/assoc2.sub')
-rw-r--r--tests/assoc2.sub15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/assoc2.sub b/tests/assoc2.sub
new file mode 100644
index 00000000..396b87a3
--- /dev/null
+++ b/tests/assoc2.sub
@@ -0,0 +1,15 @@
+echo ${BASH_ALIASES[@]}
+
+alias foo=/usr/sbin/foo
+alias qux='/usr/local/bin/qux -l'
+
+echo ${!BASH_ALIASES[@]}
+recho ${BASH_ALIASES[@]}
+
+BASH_ALIASES[blat]='cd /blat ; echo $PWD'
+BASH_ALIASES[sh]='/bin/bash --login -o posix'
+
+alias -p
+
+echo ${!BASH_ALIASES[@]}
+recho "${BASH_ALIASES[@]}"