summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--Test/D04parameter.ztst14
2 files changed, 21 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 46184fa35..9659b29f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2017-03-09 Peter Stephenson <p.stephenson@samsung.com>
+ * 40805: (combined with the previous change):
+ Test/D04parameter.ztst: Check that $- and ${-} produce a
+ plausible result.
+
+ * Sebastian: 40803 as modified in 40804 and 40806:
+ Test/D04parameter.ztst: check for the (z) split flag on some
+ partly binary data that might be problematic.
+
* 40796: Src/exec.c: We don't want magic '=' expansion if we are
already parsing a separate variable name and value.
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index fba95cc3a..cb9d50dc8 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -640,6 +640,11 @@
>echo
>$(|||) bar
+ foo=$'\x06ZUI\x1f text-field example: \x1azuitfieldtfield1_1\x1a\'\'\x1a\'\'\x1a1\x1aZUI\\[my_tfield1_width\\]\x1aZUI\\[my_tfield1_start\\]\x1aZUI\\[my_tfield1_data\\]\x1c'
+ print "${#${(z@)foo}}"
+0:Test real-world data that once seemed to fail
+>4
+
psvar=(dog)
setopt promptsubst
foo='It shouldn'\''t $(happen) to a %1v.'
@@ -2055,7 +2060,7 @@
a='~-/'; echo $~a
0:Regression: "-" became Dash in workers/37689, breaking ~- expansion
*>*
-F:We do not care what $OLDPWD is, as long as it doesn't cause an error
+F:We do not care what $OLDPWD is, as long as it does not cause an error
(
set -- one 'two three' four
@@ -2136,3 +2141,10 @@ F:We do not care what $OLDPWD is, as long as it doesn't cause an error
>[one two three four]
F:As of this writing, var=$@ and var="$@" with null IFS have unspecified
F:behavior, see http://austingroupbugs.net/view.php?id=888
+
+ () {
+ setopt localoptions extendedglob
+ [[ $- = [[:alnum:]]## ]] || print Failed 1
+ [[ ${-} = [[:alnum:]]## ]] || print Failed 2
+ }
+0:$- expansion correctly handles Dash token