aboutsummaryrefslogtreecommitdiffstats
path: root/tests/more-exp.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/more-exp.tests')
-rw-r--r--tests/more-exp.tests5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/more-exp.tests b/tests/more-exp.tests
index 6c821a5..4a3cb7f 100644
--- a/tests/more-exp.tests
+++ b/tests/more-exp.tests
@@ -65,7 +65,10 @@ HOME=/usr/homes/chet
somevar=
expect "<$HOME>"
recho ${somevar:-~}
-expect "<$HOME>"
+# This changed after bash-3.0, when the tilde implementation was redone. It's
+# not backward compatible, but it's very hard to be backward-compatible here,
+# and I think the old behavior was a bug
+expect '<~>'
recho "${somevar:-~}"
expect '<~>'
recho "${somevar:-"~"}"