diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-25 00:14:00 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-25 00:14:00 +0000 |
commit | 0fe2fc2742a7b5fd0917c0d7fc4e6a99115c4a39 (patch) | |
tree | ff5bef5407166a9d32dafeeff5afc9239f3f22db /Test/10prompt.ztst | |
parent | 1773807bcc17e16f8636ec67584f78e85aacf540 (diff) | |
download | zsh-0fe2fc2742a7b5fd0917c0d7fc4e6a99115c4a39.tar.gz zsh-0fe2fc2742a7b5fd0917c0d7fc4e6a99115c4a39.tar.xz zsh-0fe2fc2742a7b5fd0917c0d7fc4e6a99115c4a39.zip |
More minor test fixes.
Diffstat (limited to 'Test/10prompt.ztst')
-rw-r--r-- | Test/10prompt.ztst | 8 |
1 files changed, 4 insertions, 4 deletions
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 |