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

Re: (:r) ???



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