diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Test/01grammar.ztst | 2 | ||||
-rw-r--r-- | Test/10prompt.ztst | 8 | ||||
-rw-r--r-- | Test/13parameter.ztst | 6 | ||||
-rwxr-xr-x | Test/ztst.zsh | 2 |
5 files changed, 13 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog index 6d4ea4ae1..d1fe5e35f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ 2001-03-24 Bart Schaefer <schaefer@zsh.org> + * 13744: Test/01grammar.ztst, Test/10prompt.ztst, + Test/13parameter.ztst, Test/ztst.zsh: Delete or correct comments + that refer to (non-)bugs or other confusion; enable another test; + print the name of each test as it begins as well as when it ends. + * 13740: Completion/User/_mailboxes: Fixes for mh (based on PWS's patch in 13737): handle sub-folders; handle +folder abbreviations; add commented-out lines that might eventually handle @folder, too. diff --git a/Test/01grammar.ztst b/Test/01grammar.ztst index b45b6d7ab..b400b3fce 100644 --- a/Test/01grammar.ztst +++ b/Test/01grammar.ztst @@ -289,8 +289,6 @@ >Hip hip hooray >Hip hip hooray -# Why doesn't this one work here? It works from the command line -# or with zsh -fc. case bravo { (alpha) print schmalpha ;; diff --git a/Test/10prompt.ztst b/Test/10prompt.ztst index 08bf8f6a9..377143977 100644 --- a/Test/10prompt.ztst +++ b/Test/10prompt.ztst @@ -6,10 +6,9 @@ %test -# 'mydir=$PWD; hash -d mydir; print -P %~' doesn't seem to abbreviate -# to ~mydir in a non-interactive shell. Is this correct? - + hash -d mydir=$mydir print -P ' %%%): %) + %%~: %~ %%d: %d %%1/: %1/ %%h: %h @@ -23,6 +22,7 @@ ' 0q:Basic prompt escapes as shown. > %): ) +> %~: ~mydir > %d: $mydir > %1/: ${mydir:t} > %h: 0 @@ -93,7 +93,7 @@ if [[ $date3 != [0-9][0-9]-[0-9][0-9]-[0-9][0-9] ]]; then print "Date \`$date3' is not in the form \`YY-MM-DD'" fi - if (( $date1[5,-1] != $date2[4,5] )) || (( $date2[4,5] != $date3[8,9] )) + if (( $date1[5,-1] != $date2[4,5] )) || (( $date2[4,5] != $date3[7,8] )) then print "Days of month do not agree in $date1, $date2, $date3" fi diff --git a/Test/13parameter.ztst b/Test/13parameter.ztst index 872f0d3f0..735021f51 100644 --- a/Test/13parameter.ztst +++ b/Test/13parameter.ztst @@ -157,7 +157,7 @@ >IFonce bitten twice shyTHEN >IFonceTHEN IFbittenTHEN IFtwiceTHEN IFshyTHEN - # WHY DO I NEED TO QUOTE ${array} HERE????? + # Quote ${array} here because {...,...} doesn't like unquoted spaces. print IF{"${array}",THEN}ELSE print IF{${^array},THEN}ELSE 0:combined ${^...} and {...,...} @@ -221,8 +221,6 @@ 0:${(P)...} >I'm nearly out of my mind with tedium - # it doesn't *say* these are case-insensitive without i... - # I think this is a bug. foo=(I could be watching that programme I recorded) print ${(o)foo} print ${(oi)foo} @@ -466,7 +464,7 @@ >b* e* >boringfile evenmoreboringfile - # ${bar} -> $bar turns this into $$, which doesn't strike me as correct. + # ${bar} -> $bar here would yield "bad substitution". bar=confinement print ${(el.20..X.)${bar}} 0:Rule 11: Padding diff --git a/Test/ztst.zsh b/Test/ztst.zsh index c34303816..978f3d623 100755 --- a/Test/ztst.zsh +++ b/Test/ztst.zsh @@ -336,6 +336,8 @@ $ZTST_code" typeset -A ZTST_sects ZTST_sects=(prep 0 test 0 clean 0) +print "$ZTST_testname: starting." + # Now go through all the different sections until the end. while ZTST_getsect; do case $ZTST_cursect in |