Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (:r) ???
- X-seq: zsh-users 9206
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: cht@xxxxxxxxx
- Subject: Re: (:r) ???
- Date: Sat, 30 Jul 2005 15:54:07 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200507301435.38924.cht@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050730.140409.78707269.Meino.Cramer@xxxxxx> <200507301435.38924.cht@xxxxxxxxx>
From: Christian Taylor <cht@xxxxxxxxx>
Subject: Re: (:r) ???
Date: Sat, 30 Jul 2005 14:35:38 +0200
> 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,
a lot ! :)
Thank you...sometimes a single line of code can light up my life
:O))
> Christian
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author