From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id AAA12291 for ; Fri, 12 Jul 1996 00:46:32 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA19124; Thu, 11 Jul 1996 10:16:41 -0400 (EDT) Resent-Date: Thu, 11 Jul 1996 09:56:42 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607111355.PAA02107@bolyai.cs.elte.hu> Subject: Re: zsh 3pre2: carriage return in prompt To: luomat@nerc.com Date: Thu, 11 Jul 1996 15:55:42 +0200 (MET DST) Cc: zsh-users@math.gatech.edu In-Reply-To: <199607110601.CAA00860@nerc.com> from "Timothy J. Luoma" at "Jul 11, 96 02:01:31 am" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"asuHa.0.cd4.QWGvn"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/283 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > > I had been using this as my prompt: > > PROMPT='[%h] [OLD: $OLDPWD] [CURRENT: %~] $(echo "\n")' > > That gave me the information I wanted, and a carriage return at the > end of the line, so my commands always began at the left margin. > > This no longer works with 3.pre2. Has something changed that makes > this impossible? All I want is something that looks like this: Yes. Quote from man zshexpn: COMMAND SUBSTITUTION A command enclosed in parentheses preceded by a dollar sign, like so: $(...) or quoted with grave accents: `...` is replaced with its standard output, with any trailing newlines deleted. But really using $(echo "\n") is a quite expensive solution. It requires a fork(). You can just simply write PROMPT='[%h] [OLD: $OLDPWD] [CURRENT: %~] ' If you use csh_junkie_paren, turn it of, or put a backslash at the end of the line. Zoltan