From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6986 invoked by alias); 25 Jul 2011 13:37:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29607 Received: (qmail 22311 invoked from network); 25 Jul 2011 13:36:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.net designates 213.165.64.23 as permitted sender) Content-Type: text/plain; charset="utf-8" Date: Mon, 25 Jul 2011 15:30:11 +0200 From: "Manuel Presnitz" In-Reply-To: <20110725134018.445c0ccf@pwslap01u.europe.root.pri> Message-ID: <20110725133011.297320@gmx.net> MIME-Version: 1.0 References: <1311403039.25825.207.camel@zareason> <110725013402.ZM15058@torch.brasslantern.com> <87ei1e4quq.fsf@gmail.com> <20110725111518.1dc9a327@pwslap01u.europe.root.pri> <87aac24m93.fsf@gmail.com> <20110725125739.53d1db24@pwslap01u.europe.root.pri> <8762mq4kb7.fsf@gmail.com> <20110725134018.445c0ccf@pwslap01u.europe.root.pri> Subject: Re: 'r' history parameter documentation fix To: zsh-workers@zsh.org X-Authenticated: #455653 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18lzRVgXvclbU4bMe8m0lnMZrP0B8YJjvHNPR1vbY lN6tSqV2BMiqHqayyxuiRKDRQ9HbeJ2rgdQg== Content-Transfer-Encoding: 8bit X-GMX-UID: 1FkeekY8TXsuSpaXZ2Q57WRCRzdyMkPE Am Montag 25 Juli 2011 14:40 schrieb Peter Stephenson: > and it's not necessarily clear whether "foo." has an > extension "." or no extension. That's really not clear, at least to me. But after the actual documentation ("a filename extension is a `tt(.)' followed by (...)") it has the extension "." And this is exactly what the :r modifier does: # test=foo. && print +$test:r+ +foo+ But then IMHO there's another subtle error in the ":e" modifiers doc a few lines above: "e Remove all but the extension." # test=foo. && print +$test:e+ ++ Perhaps it should read "e Leaves only the extension but without the separating dot." ---Manuel. -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone