From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27122 invoked from network); 7 Aug 2008 12:08:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Aug 2008 12:08:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 42802 invoked from network); 7 Aug 2008 12:08:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Aug 2008 12:08:22 -0000 Received: (qmail 21367 invoked by alias); 7 Aug 2008 12:07:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25418 Received: (qmail 21292 invoked from network); 7 Aug 2008 12:07:55 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 7 Aug 2008 12:07:55 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id E41568056E06 for ; Thu, 7 Aug 2008 14:07:49 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly26g.srv.mailcontrol.com (MailControl) with ESMTP id m77C7O10021768 for ; Thu, 7 Aug 2008 13:07:44 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Aug 2008 13:06:56 +0100 Date: Thu, 7 Aug 2008 13:06:56 +0100 From: Peter Stephenson To: Zsh hackers list Subject: Re: DEBUG_CMD_LINE (Was Re: PATCH: skip command from debug trap) Message-ID: <20080807130656.34179090@news01> In-Reply-To: <20080807104030.GA7373@sc.homeunix.net> References: <6cd6de210808061419q2a81856cv62969490069e8f3e@mail.gmail.com> <20080807095441.3058605d@news01> <20080807093139.GA6839@sc.homeunix.net> <20080807111438.59126ef3@news01> <20080807104030.GA7373@sc.homeunix.net> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Aug 2008 12:06:56.0572 (UTC) FILETIME=[166EB7C0:01C8F886] X-Scanned-By: MailControl A-08-50-03 (www.mailcontrol.com) on 10.71.0.136 X-Virus-Scanned: ClamAV 0.92.1/7970/Thu Aug 7 13:12:26 2008 on bifrost X-Virus-Status: Clean On Thu, 7 Aug 2008 11:40:30 +0100 Stephane Chazelas wrote: > On Thu, Aug 07, 2008 at 11:14:38AM +0100, Peter Stephenson wrote: > [...] > > > BTW, shouldn't PROMPT_SUBST be enabled by default in sh and ksh > > > emulation? > > > > If they do that, then presumably yes. > [...] > > It's required by SUSv3 for non-priviledged users for systems > supporting the User Portability Utilities option (so include the > sh of Unix conformant systems, but not necessarily POSIX > conformant ones I suppose). Looks like it's already set up for ksh. It should probably be turned on for other Bourne-style shells. I suppose it wasn't done originally because at the time that meant old-fashioned, fairly limited Bourne shells, but nowadays it doesn't. "promptvars" is on by default in bash. Index: Doc/Zsh/options.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/options.yo,v retrieving revision 1.61 diff -u -r1.61 options.yo --- Doc/Zsh/options.yo 12 Jun 2008 13:45:05 -0000 1.61 +++ Doc/Zsh/options.yo 7 Aug 2008 12:04:46 -0000 @@ -1009,7 +1009,7 @@ ) pindex(PROMPT_SUBST) cindex(prompt, parameter expansion) -item(tt(PROMPT_SUBST) )( +item(tt(PROMPT_SUBST) )( If set, em(parameter expansion), em(command substitution) and em(arithmetic expansion) are performed in prompts. Substitutions within prompts do not affect the command status. Index: Src/options.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/options.c,v retrieving revision 1.43 diff -u -r1.43 options.c --- Src/options.c 31 Jul 2008 08:44:21 -0000 1.43 +++ Src/options.c 7 Aug 2008 12:04:47 -0000 @@ -198,7 +198,7 @@ {{NULL, "promptcr", OPT_ALL}, PROMPTCR}, {{NULL, "promptpercent", OPT_NONBOURNE}, PROMPTPERCENT}, {{NULL, "promptsp", OPT_ALL}, PROMPTSP}, -{{NULL, "promptsubst", OPT_KSH}, PROMPTSUBST}, +{{NULL, "promptsubst", OPT_BOURNE}, PROMPTSUBST}, {{NULL, "pushdignoredups", OPT_EMULATE}, PUSHDIGNOREDUPS}, {{NULL, "pushdminus", OPT_EMULATE}, PUSHDMINUS}, {{NULL, "pushdsilent", 0}, PUSHDSILENT}, -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070