mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-02 08:21:09 +01:00
More minor test fixes.
This commit is contained in:
parent
1773807bcc
commit
0fe2fc2742
5 changed files with 13 additions and 10 deletions
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue