$MAIL  –  Path to a mail file or directory

$MAIL contains the path to a file or a Maildir-format directory. If $MAILPATH is not set, then Bash informs the user when new mail arrived in $MAIL.

Examples

Check $HOME/.inbox for incoming mail every 10 seconds
1
2
3
MAIL=~/".inbox"
MAILCHECK=10
# Now bash will notify you when ~/.inbox changes
BashSupport Pro 是一个 支持 $MAIL 的 Bash 集成开发工具 – 马上试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款