zsh-users
 help / color / mirror / code / Atom feed
From: "William H. Magill" <magill@mcgillsociety.org>
To: zsh users <zsh-users@sunsite.dk>
Subject: zsh as ksh for login shell -- a bug with PS1?
Date: Sat, 8 Jan 2005 00:18:17 -0500	[thread overview]
Message-ID: <B4498176-6134-11D9-AB6E-000393768D2C@mcgillsociety.org> (raw)
In-Reply-To: <20031119170220.GB6550@atoom.net>

This is under FreeBSD 5.3 on an Alpha XP1000;
Zsh version zsh 4.2.1 (alpha-portbld-freebsd6.0)

/usr/local/bin/zsh is sym-linked to /usr/local/bin/ksh
both are in /etc/shells.

I have a two-line prompt string

PS1='[$PWD] $me
  $HOST> '

I have been using this for many years. It works fine under ksh on Tru64 
Unix 5.1 and when zsh 4.2.1 itself is evoked as the login shell.

However, if I change the /etc/password entry to evoke ksh instead of 
zsh, the newline is lost, resulting in a prompt consisting of "$HOST> "

Use of single or double quotes makes no difference.
I've tried it with and without "set -o PROMPT_SUBST" and note no change.
I've tried it using \n instead of a "real" newline without effect. (\n 
winds up in the prompt string.)

Set displays PS1 as the string containing the newline. It is only the 
actual prompt itself which does not contain the newline, only the 
second line of output.

There is clearly a difference in between the performance of zsh and zsh 
as ksh.

Is this a bug with zsh?

T.T.F.N.
William H. Magill
# Beige G3 [Rev A motherboard - 300 MHz 768 Meg] OS X 10.2.8
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.3.7
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a
# XP1000  [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000  [Alpha 21264-A (EV 6.7) - 384 meg] FreeBSD 5.3
magill@mcgillsociety.org
magill@acm.org
magill@mac.com
whmagill@gmail.com


  parent reply	other threads:[~2005-01-08  5:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 15:34 zsh book? Miek Gieben
2003-11-17 17:50 ` Peter Stephenson
2003-11-17 19:01   ` Nikolai Weibull
2003-11-17 21:30   ` Miek Gieben
2003-11-18 19:05   ` zsh vs ksh William H. Magill
2003-11-19 17:00     ` Peter Stephenson
2003-11-19 17:02     ` Miek Gieben
2003-12-04 12:04       ` zzapper
2005-01-08  5:18       ` William H. Magill [this message]
2005-01-08 16:24         ` zsh as ksh for login shell -- a bug with PS1? Peter Stephenson
2005-01-08 16:50           ` 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=B4498176-6134-11D9-AB6E-000393768D2C@mcgillsociety.org \
    --to=magill@mcgillsociety.org \
    --cc=zsh-users@sunsite.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).