Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'r' history parameter documentation fix
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author