* PATCH: Functions/checkmail
@ 1998-05-10 20:19 Zoltan Hidvegi
0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1998-05-10 20:19 UTC (permalink / raw)
To: Zsh hacking and development
Zero length files always have access time not later than modification
time, therefore checkmail always reported zero length folders as new.
This patch should also be applied to 3.0.5.
Zoltan
*** Functions/checkmail.orig Tue Feb 11 08:23:47 1997
--- Functions/checkmail Sun May 10 15:14:20 1998
***************
*** 22,28 ****
if (($#file)) then
checkmail "${^file}\?$message"
fi
! elif test -N "$file"; then # this also sets $_ to $file
print -r -- "${(e)message:-You have new mail.}"
fi
done
--- 22,28 ----
if (($#file)) then
checkmail "${^file}\?$message"
fi
! elif test -s "$file" -a -N "$file"; then # this also sets $_ to $file
print -r -- "${(e)message:-You have new mail.}"
fi
done
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-10 20:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-10 20:19 PATCH: Functions/checkmail Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).