From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4524 invoked from network); 27 Oct 1997 17:32:51 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 27 Oct 1997 17:32:51 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id MAA21965; Mon, 27 Oct 1997 12:18:50 -0500 (EST) Resent-Date: Mon, 27 Oct 1997 12:18:08 -0500 (EST) Message-Id: <199710271719.MAA04415@luomat.peak.org> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.2mach v148) In-Reply-To: <199710270852.JAA07593@hydra.ifh.de> X-Nextstep-Mailer: Mail 4.2mach (Enhance 2.0b6.3) From: Timothy J Luoma Date: Mon, 27 Oct 97 12:18:54 -0500 To: Peter Stephenson Subject: Re: showing 'talk' status in PROMPT cc: zsh-users@math.gatech.edu (Zsh users list) References: <199710270852.JAA07593@hydra.ifh.de> Resent-Message-ID: <"C6TsG3.0.UM5.GpCLq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1105 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Author: Peter Stephenson Original-Date: Mon, 27 Oct 1997 09:52:33 +0100 Message-ID: <199710270852.JAA07593@hydra.ifh.de> > 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. Ah yes! Believe it or not I had ``tested'' whether 'mesg' by itself would work, but I had only tested it when I had messages ON! So I never noticed this. Thanks for the pointer. The new function is as follows: mesg () { case $1 in n*|off) TALK=" " /usr/bin/mesg n ;; '') /usr/bin/mesg ;; *) TALK="" /usr/bin/mesg $* ;; esac } TjL