Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: (:r) ???



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