From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26951 invoked from network); 19 Jun 2001 18:34:18 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Jun 2001 18:34:18 -0000 Received: (qmail 20865 invoked by alias); 19 Jun 2001 18:33:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14978 Received: (qmail 20849 invoked from network); 19 Jun 2001 18:33:41 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) Date: Tue, 19 Jun 2001 22:34:09 +0400 (MSD) From: Andrej Borsenkow X-X-Sender: To: Clint Adams cc: , <101083@bugs.debian.org>, Subject: Re: %l prompt expansion change In-Reply-To: <20010619141057.B13262@dman.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 19 Jun 2001, Clint Adams wrote: > > > PS1='<%?>%n@%m[%l]:%~%# ' > > <0>tretkowski@infinity[tty9]:~% > > ^^^ > > When I use a zsh binary from potato, %l is handled correct: > > > > <0>tretkowski@infinity[tty9]:~% ./zsh <-- potato binary > > <0>tretkowski@infinity[9]:~% > > Can you explain what makes this incorrect rather than aesthetic? > Well, mostly aesthetic considerations. It is `0' om /dev/tty0 and pts/3 or term/4 somewhere else. Also, ps usually shows tty line as base name sans /dev/. And not every Unix is Linux yet to treat /dev/tty* specially. In short, consistency considerations. I asked if somebody was against this change. In a couple weeks I got some personal replies "go ahead" and none said "no". So I committed it. Change it back if you wish; I guess I just stop using %l in prompt again then :-) -andrej