Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (:r) ???
- X-seq: zsh-users 9204
- From: Christian Taylor <cht@xxxxxxxxx>
- To: "zsh-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: (:r) ???
- Date: Sat, 30 Jul 2005 14:35:38 +0200
- In-reply-to: <20050730.140409.78707269.Meino.Cramer@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050730.140409.78707269.Meino.Cramer@xxxxxx>
Meino Christian Cramer wrote:
> Hi,
>
> i="mc-4.6.1-2005-07-25-14.diff.bz2"
[...]
> fn="$i(:r)"
> echo $fn
> --> mc-4.6.1-2005-07-25-14.diff.bz2(:r)
[...]
> How can I make fn contain "mc-4.6.1-2005-07-25-14.diff" ?
As far as I know, the syntax you're using is only valid for filename
generation. I believe you're looking for:
fn=${i:r}
hope this helps,
Christian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author