Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (:r) ???
- X-seq: zsh-users 9207
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: strcat@xxxxxxx
- Subject: Re: (:r) ???
- Date: Sat, 30 Jul 2005 15:55:35 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <2005-07-30T12-46-09@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050730.140409.78707269.Meino.Cramer@xxxxxx> <2005-07-30T12-46-09@xxxxxxxxxxxxxxxxxxx>
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