From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: PATCH: Functions/checkmail
Date: Sun, 10 May 1998 15:19:13 -0500 (CDT) [thread overview]
Message-ID: <199805102019.PAA08850@hzoli.home> (raw)
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
reply other threads:[~1998-05-10 20:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199805102019.PAA08850@hzoli.home \
--to=hzoli@cs.elte.hu \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).