zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Grimm <grimm@particle.phys.ethz.ch>
To: zsh-users@sunsite.auc.dk
Subject: Re: PROMPT
Date: Thu, 17 Jun 1999 17:32:41 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9906171727180.11755-100000@ihp-pc7.ethz.ch> (raw)
In-Reply-To: <990616154246.ZM1576@candle.brasslantern.com>



Sorry, I meant to write that PROMPT=Hallo does not work - forget the
equal sign in my first mail.

I am not using RedHat, but Suse Linux 6.1. But I figured out the problem
now:

The /etc/zshrc file sources /etc/profile, which contains the following:

if test -z "$EMACS" ; then
    if   [ -n "$ZSH_VERSION" ]; then
        precmd ()
        {
            if test "$UID" = 0; then
                PS1="%m:`pwd -r` # "
            else
                PS1="%n@%m:`pwd -r` > "
            fi
        }
    fi
fi

Uncommenting the second PS1=... lines solved the problem. I assume that
this defines a function that is called every time anything is executed
by the shell, and so also make a change of PROMPT impossible.

I wonder if this was intended by the designer of the profile ?

Cheers, Oliver.

> } I do have a strange problem with the PROMPT variable, persisting since
> } some time. After upgrading to Linux 6.1, the command
> } 'PROMPT  Hallo' does not change the prompt anymore.
> } 
> } Now, the version of zsh is 3.0 (dated 26 June 1996), but it seems
> } that it's not the fault of zsh, since on a different machine with the
> } same version of zsh (but not under Linux but Solaris Unix), this
> } does work properly.
> 
> Did you recompile zsh after installing the new OS, or are you still
> running the old binary?  I've had a number of strange problems when
> running older Linux binaries on my upgraded OS, including things like
> some of the libc string functions not working correctly -- neither the
> "par" paragraph-formatting package nor the old zmail beta that I'd been
> using as my mailer could parse text properly any more, and the slightly
> newer version of zmail that I'm using now is unable to get the correct
> timezone (you may note that my Date: headers say +0000, though they do
> contain the GMT it would be if I were instantly teleported to England).
> 
> If `Linux 6.1' really does mean RedHat, you should install the zsh-3.0.5
> RPM (and then carefully consider deleting the /etc/z* files) and let us
> know if the problem persists.
> 
> -- 
> Bart Schaefer                                 Brass Lantern Enterprises
> http://www.well.com/user/barts              http://www.brasslantern.com
> 

=====================================================================
Oliver Grimm			   EMail: grimm@particle.phys.ethz.ch
ETH ZÜrich			   Telephone: ++41 - (0)1 - 633 65 01
Labor fÜr Hochenergiephysik	   Facsimile: ++41 - (0)1 - 633 11 04
CH-8093 ZÜrich


  reply	other threads:[~1999-06-17 15:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-16  9:27 PROMPT Oliver Grimm
1999-06-16 14:33 ` PROMPT Larry P. Schrof
1999-06-16 15:42 ` PROMPT Bart Schaefer
1999-06-17 15:32   ` Oliver Grimm [this message]
1999-06-17 15:20     ` PROMPT Peter Stephenson
1999-06-17 16:42       ` PROMPT Bart Schaefer
2005-02-24 19:30 prompt Joel David Elkins
2005-02-27 16:47 ` prompt William H. Magill

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=Pine.LNX.4.10.9906171727180.11755-100000@ihp-pc7.ethz.ch \
    --to=grimm@particle.phys.ethz.ch \
    --cc=zsh-users@sunsite.auc.dk \
    /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).