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

Re: (:r) ???



* 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