From: Anthony Heading <heading_anthony@jpmorgan.com>
To: zsh-workers@math.gatech.edu
Subject: mailcheck patch
Date: Fri, 24 May 1996 19:18:56 +0100 [thread overview]
Message-ID: <199605241818.TAA23634@et-sun4.uk.jpmorgan.com> (raw)
I've had this patch kicking around for a year or two, and find it quite
useful. Perhaps it might be worth incorporating?
Anthony
*** Src/utils.c.orig Mon May 20 13:40:01 1996
--- Src/utils.c Thu May 23 18:30:23 1996
***************
*** 692,697 ****
--- 692,705 ----
if (!u) {
fprintf(stderr, "You have new mail.\n");
fflush(stderr);
+ } else if (*u == '?') {
+ List list;
+ if ((list = getshfunc(u+1))) {
+ LinkList args = newlinklist();
+ addlinknode(args, dupstring(u+1));
+ addlinknode(args, dupstring(*s));
+ doshfunc(list, args, 0, 0);
+ }
} else {
char *z = u;
*** Doc/zshparam.1.orig Fri May 24 19:03:48 1996
--- Doc/zshparam.1 Fri May 24 19:13:00 1996
***************
*** 397,409 ****
.TP
.B mailpath (MAILPATH)
An array (colon-separated list)
! of filenames to check for new mail. Each filename can
! be followed by a ? and a message that will be printed.
! The sequence $_ in the message will be replaced by the name
! of the mail file.
! The default message is "You have new mail." If an element is a directory
! instead of a file the shell will recursively check every file in every
! subdirectory of the element.
.TP
.B manpath (MANPATH)
An array (colon-separated list)
--- 397,410 ----
.TP
.B mailpath (MAILPATH)
An array (colon-separated list)
! of filenames to check for new mail. Each filename may
! be followed by `?' and a message to be printed:
! the sequence `$_' in the message will be replaced by the name
! of the mail file. The default message is "You have new mail."
! Alternatively, the filename may be followed by `??' and a shell
! function to be called with the mail file name as an argument.
! If an element is a directory instead of a file the shell will
! recursively check every file in every subdirectory of the element.
.TP
.B manpath (MANPATH)
An array (colon-separated list)
next reply other threads:[~1996-05-24 18:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-24 18:18 Anthony Heading [this message]
1996-05-27 17:06 ` Zoltan Hidvegi
1996-05-27 20:04 ` Anthony Heading
1996-05-27 21:45 ` Zefram
1996-05-27 22:00 ` Zoltan Hidvegi
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=199605241818.TAA23634@et-sun4.uk.jpmorgan.com \
--to=heading_anthony@jpmorgan.com \
--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).