]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/rsh1.sub
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / rsh1.sub
diff --git a/tests/rsh1.sub b/tests/rsh1.sub
new file mode 100644 (file)
index 0000000..fdd4ddd
--- /dev/null
@@ -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