Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'r' history parameter documentation fix
- X-seq: zsh-workers 29601
- From: Štěpán Němec <stepnem@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: 'r' history parameter documentation fix
- Date: Mon, 25 Jul 2011 12:06:05 +0200
- Cc: Jesse Weinstein <jesse@xxxxxxxx>, zsh-workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=RTDLadRiTFtfcizBufgmkzadEkraHp2R6w1WV9Dvo7U=; b=rUu/6j/3Pkf+U6tDrgMmvX9pl8uNW7f8pQIoedTXKS7pdFvDep6EftS33veVhR5nul 8DzCh/g9N9ECvjXGtDq5HxdLsYSm+qQHcRGNEcW6nyFilZIj4EPGm+pGOhPXTEYQg19+ Jhvj6I5qirF5/sZSh5G1QJJXPjQv5Tet1j+08=
- In-reply-to: <110725013402.ZM15058@torch.brasslantern.com> (Bart Schaefer's message of "Mon, 25 Jul 2011 01:34:02 -0700")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1311403039.25825.207.camel@zareason> <110725013402.ZM15058@torch.brasslantern.com>
On Monday, 25.07.2011, Bart Schaefer wrote:
> On Jul 22, 11:37pm, Jesse Weinstein wrote:
> }
> } In the Modifier's section of the docs, defining the 'r' history
> } modifier, "Remove a filename extension of the form `.XXX', leaving the
> } root name." appears to be subtly wrong.
> }
> } At least in 4.3.10.Debian, (foo=blah.flac; echo ${foo:r}) gives blah,
> } although it should't, according to the manual, as .flac isn't of the
> } form .XXX .
> }
> } I think the doc should be changed to "Remove a filename extension
> } leaving the root name."
>
> That'd be at least as wrong (except maybe less subtly) because it
> doesn't define "extension" at all.
>
> I guess the question is whether anyone is really confused by what the
> doc currently says?
FWIW, I do think leaving out the "of the form `.XXX'" is better (and
avoids possible confusion, although I didn't suffer from it myself). The
manual doesn't explain what a file is or many other taken-for-granted
terms either (and -- to avoid possible confusion ;-) -- I'm not
suggesting it should).
--
Štěpán
Messages sorted by:
Reverse Date,
Date,
Thread,
Author