summaryrefslogtreecommitdiffstats
path: root/tests/builtins2.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/builtins2.sub')
-rw-r--r--tests/builtins2.sub10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/builtins2.sub b/tests/builtins2.sub
new file mode 100644
index 0000000..e4cb32a
--- /dev/null
+++ b/tests/builtins2.sub
@@ -0,0 +1,10 @@
+# test behavior of shopt xpg_echo
+
+USG_ECHO=off
+shopt -q xpg_echo && USG_ECHO=on
+
+shopt -u xpg_echo
+echo 'a\n\n\nb'
+
+shopt -s xpg_echo
+echo 'a\n\n\nb'