Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (:r) ???
- X-seq: zsh-users 9205
- From: Christian Schneider <strcat@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: (:r) ???
- Date: Sat, 30 Jul 2005 14:46:09 +0200
- In-reply-to: <20050730.140409.78707269.Meino.Cramer@xxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Born to frag.
- References: <20050730.140409.78707269.Meino.Cramer@xxxxxx>
* Meino Christian Cramer <Meino.Cramer@xxxxxx> typed:
> i="mc-4.6.1-2005-07-25-14.diff.bz2"
> echo $i
> --> mc-4.6.1-2005-07-25-14.diff.bz2
> echo $i(:r)
> --> mc-4.6.1-2005-07-25-14.diff
> fn=$i(:r)mc-4.6.1-2005-07-25-14.diff
> echo $fn
> --> mc-4.6.1-2005-07-25-14.diff.bz2(:r)
> fn="$i(:r)"
> echo $fn
> --> mc-4.6.1-2005-07-25-14.diff.bz2(:r)
>
> or in other words:
> How can I make fn contain "mc-4.6.1-2005-07-25-14.diff" ?
$ fn='mc-4.6.1-2005-07-25-14.diff.bz2'
$ echo $fn:r
?
--
http://strcat.de/zsh/#features # Christian 'strcat' Schneider
http://strcat.de/zsh/#Differences # Email.......: strcat@xxxxxxx
http://strcat.de/zsh/#tipps # GPG-ID......: 47E322CE
http://strcat.de/zsh/#modex # [Yes. zsh *is* evil!!!11one]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author