summaryrefslogtreecommitdiffstats
path: root/tests/rsh1.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rsh1.sub')
-rw-r--r--tests/rsh1.sub16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rsh1.sub b/tests/rsh1.sub
new file mode 100644
index 0000000..fdd4ddd
--- /dev/null
+++ b/tests/rsh1.sub
@@ -0,0 +1,16 @@
+cd ${TMPDIR:-/tmp}
+cp /bin/sh .
+
+PATH=/rbin:/usr/local/rbin
+hash -p /bin/rm rm
+
+set -r
+
+BASH_CMDS[x]=/bin/sh
+
+BASH_CMDS[a]="sh"
+a -c 'echo hello'
+
+rm -f sh a
+
+exit 0