zsh-users
 help / color / mirror / code / Atom feed
From: Timothy J Luoma <luomat+zsh+users@luomat.peak.org>
To: Peter Stephenson <pws@ifh.de>
Cc: zsh-users@math.gatech.edu (Zsh users list)
Subject: Re: showing 'talk' status in PROMPT
Date: Mon, 27 Oct 97 12:18:54 -0500	[thread overview]
Message-ID: <199710271719.MAA04415@luomat.peak.org> (raw)
In-Reply-To: <199710270852.JAA07593@hydra.ifh.de>

	Author:        Peter Stephenson <pws@ifh.de>
	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="<notalk> "
                        /usr/bin/mesg n
                ;;

                '')
                        /usr/bin/mesg
                ;;

                *)
                        TALK=""
                        /usr/bin/mesg $*
                ;;

        esac
}

	TjL
	


  reply	other threads:[~1997-10-27 17:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-27  4:43 Timothy J Luoma
1997-10-27  8:52 ` Peter Stephenson
1997-10-27 17:18   ` Timothy J Luoma [this message]
1997-10-27 17:21   ` Bart Schaefer
1997-10-27 18:13     ` Andrew Main
1997-10-28  1:28 ` Deborah Ariel Pickett

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=199710271719.MAA04415@luomat.peak.org \
    --to=luomat+zsh+users@luomat.peak.org \
    --cc=pws@ifh.de \
    --cc=zsh-users@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).