From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 934 invoked from network); 27 Oct 1997 09:03:52 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 27 Oct 1997 09:03:52 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id DAA11525; Mon, 27 Oct 1997 03:52:36 -0500 (EST) Resent-Date: Mon, 27 Oct 1997 03:51:31 -0500 (EST) Message-Id: <199710270852.JAA07593@hydra.ifh.de> To: zsh-users@math.gatech.edu (Zsh users list) Subject: Re: showing 'talk' status in PROMPT In-reply-to: "Timothy J Luoma"'s message of "Sun, 26 Oct 1997 23:43:35 MET." <199710270443.XAA17820@luomat.peak.org> Date: Mon, 27 Oct 1997 09:52:33 +0100 From: Peter Stephenson Resent-Message-ID: <"0Pyq7.0.Kp2.IO5Lq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1101 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Timothy J Luoma wrote: > I am using this to let me know if I have turned off messages on my terminal: > > mesg () { > > case $1 in > n*|off) > TALK=" " > /usr/bin/mesg n > ;; > > *) > /usr/bin/mesg $* > TALK="" I haven't tried this out, but you have problems if you just run mesg with no arguments and it was already turned off. You should test for '') and if so just run /usr/bin/mesg without setting $TALK. > > ;; > esac > } -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.