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

Re: (:r) ???



From: Christian Schneider <strcat@xxxxxxx>
Subject: Re: (:r) ???
Date: Sat, 30 Jul 2005 14:46:09 +0200

> * 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
> ?

  Yes...hmmm...but it would only copy the problem from $i to $fn.

  The mail from Taylor solves my problem...

  Thank you very much for your reply !

  Meino


> -- 
> 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