aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/errors/assignment-error2.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/errors/assignment-error2.0')
-rw-r--r--shell_cmds/sh/tests/errors/assignment-error2.08
1 files changed, 8 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/errors/assignment-error2.0 b/shell_cmds/sh/tests/errors/assignment-error2.0
new file mode 100644
index 0000000..68f2d48
--- /dev/null
+++ b/shell_cmds/sh/tests/errors/assignment-error2.0
@@ -0,0 +1,8 @@
+# $FreeBSD: head/bin/sh/tests/errors/assignment-error2.0 216870 2011-01-01 13:26:18Z jilles $
+
+set -e
+HOME=/
+readonly HOME
+cd /sbin
+{ HOME=/bin cd; } 2>/dev/null || :
+[ "$(pwd)" != /bin ]