diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-15 18:22:19 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-15 18:22:19 +0000 |
commit | 572ad667e7c868dbcb2c609cd7d421c3359589b9 (patch) | |
tree | 3dc26285141762204010b58afdc592376938ffea /Functions/Misc/checkmail | |
parent | bd4b21bf46c7d311cb8eaa978582a8d5c0747aaf (diff) | |
download | zsh-572ad667e7c868dbcb2c609cd7d421c3359589b9.tar.gz zsh-572ad667e7c868dbcb2c609cd7d421c3359589b9.tar.xz zsh-572ad667e7c868dbcb2c609cd7d421c3359589b9.zip |
zsh-users/10720: a couple of checkmail fixes
Diffstat (limited to 'Functions/Misc/checkmail')
-rw-r--r-- | Functions/Misc/checkmail | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Functions/Misc/checkmail b/Functions/Misc/checkmail index 1e03d10a1..fc987e871 100644 --- a/Functions/Misc/checkmail +++ b/Functions/Misc/checkmail @@ -9,6 +9,7 @@ # This function requires zsh-3.0.1 or newer. # +emulate -L zsh local file message for file in "${@:-${mailpath[@]:-${MAIL:-/var/spool/mail/$LOGNAME}}}" @@ -18,7 +19,7 @@ do if [[ -d "$file" ]] then file=( "$file"/**/*(.ND) ) if (($#file)) then - checkmail "${^file}\?$message" + 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.}" |