diff options
author | Peter Stephenson <pws@zsh.org> | 2013-10-10 17:45:42 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2013-10-10 17:45:42 +0100 |
commit | c35a561a9c0ea5f3190141c7ccf28720c100485a (patch) | |
tree | f5a03f7de3785ef1d85044169991051c1aab02c8 | |
parent | 68a9bab11da470275fb28bea19e34db51a5093ba (diff) | |
download | zsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.tar.gz zsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.tar.xz zsh-c35a561a9c0ea5f3190141c7ccf28720c100485a.zip |
31810: tests for simple XTRACE output from conditions
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Test/E02xtrace.ztst | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 25fb77933..524f54242 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-10-10 Peter Stephenson <p.stephenson@samsung.com> + * 31810: Test/E02xtrace.ztst: tests for simple cases of XTRACE + output for conditions. + * 31809: Src/exec.c: make whitespace clear in trace output for patterns. diff --git a/Test/E02xtrace.ztst b/Test/E02xtrace.ztst index 2420aebd7..093a587bd 100644 --- a/Test/E02xtrace.ztst +++ b/Test/E02xtrace.ztst @@ -118,3 +118,12 @@ ?+./fnfile:5> : ?+./fnfile:6> fn ?+./fnfile:3> print This is fn. + + set -x + [[ 'f o' = 'f x'* || 'b r' != 'z o' && 'squashy sound' < 'squishy sound' ]] + [[ -e nonexistentfile || ( -z '' && -t 3 ) ]] + set +x +0:Trace for conditions +?+(eval):2> [[ 'f o' == f\ x* || 'b r' != z\ o && 'squashy sound' < 'squishy sound' ]] +?+(eval):3> [[ -e nonexistentfile || -z '' && -t 3 ]] +?+(eval):4> set +x |