From owner-freebsd-alpha@FreeBSD.ORG Sat Jan 8 16:53:17 2005 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D80816A4CE for ; Sat, 8 Jan 2005 16:53:17 +0000 (GMT) Received: from spacecat.mcgillsociety.org (adsl-216-158-26-62.cust.oldcity.dca.net [216.158.26.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id E29F643D54 for ; Sat, 8 Jan 2005 16:53:15 +0000 (GMT) (envelope-from magill@mcgillsociety.org) Received: from [10.0.1.2] (abase.mcgillsociety.org [216.158.26.165]) j08GpDl347946 for ; Sat, 8 Jan 2005 11:51:13 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <20050108162405.1924985AF@pwstephenson.fsnet.co.uk> References: <6037.1069091427@csr.com> <2B1BAD39-19FA-11D8-BE95-000393768D2C@mcgillsociety.org> <20031119170220.GB6550@atoom.net> <20050108162405.1924985AF@pwstephenson.fsnet.co.uk> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit X-Image-Url: http://www.mcgillsociety.org/magill.jpg From: "William H. Magill" Date: Sat, 8 Jan 2005 11:53:13 -0500 To: freebsd-alpha@freebsd.org X-Mailer: Apple Mail (2.619) Subject: Re: zsh as ksh in 5.3 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 16:53:17 -0000 The issue WAS with zsh. The response to my query from zsh-users ... On 08 Jan, 2005, at 11:24, Peter Stephenson wrote: > "William H. Magill" wrote: >> 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> >> " > > I think you're saying that ksh is really a link to zsh. In that case > zsh will start up with a different set of options. Probably the > critical one in this case is single_line_zle. Try "unsetopt > single_line_zle" and see if that works. (If my experiment is correct > this is exactly the problem.) > > The option isn't there for the prompt, in fact, it's there because ksh > doesn't handle multiple line editing buffers. It so happens that in > zsh > this is associated with a multi-line prompt. However, it's not at all > clear we really need to enforce this restriction of ksh when emulating > it anyway. It's hard to think of a case where it's an advantage. > > -- > Peter Stephenson > Work: pws@csr.com > Web: http://www.pwstephenson.fsnet.co.uk > 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