From: "Nikolai Weibull" <now@bitwi.se>
To: "Jörg Sommer" <joerg@alea.gnuu.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: Prepend/append to the members of a list
Date: Mon, 30 Oct 2006 19:23:02 +0100 [thread overview]
Message-ID: <dbfc82860610301023r485560eet41a9d9a567bea794@mail.gmail.com> (raw)
In-Reply-To: <20061030170919.GA9507@alea.gnuu.de>
On 10/30/06, Jörg Sommer <joerg@alea.gnuu.de> wrote:
> Hi,
>
> somewhere I've used
>
> % ls foo bar bla
>
> Then I've left the directory. Later I want to do
>
> % ls !ls*:(s/^/dir/)
>
> But it does not work, because the s/// expression doesn't know ^.
OK, this isn't a very good solution, but it works:
a=(!ls*); ls dir/$a
and it requires that you have rcexpandparam set.
nikolai
next prev parent reply other threads:[~2006-10-30 18:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-30 17:09 Jörg Sommer
2006-10-30 18:23 ` Nikolai Weibull [this message]
2006-10-31 2:54 ` Bart Schaefer
2006-10-31 14:52 ` Peter Stephenson
2006-10-31 16:31 ` Bart Schaefer
2006-10-31 16:40 ` Nikolai Weibull
2006-10-31 18:01 ` Nikolai Weibull
2006-10-31 17:08 ` Peter Stephenson
2006-11-01 12:24 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dbfc82860610301023r485560eet41a9d9a567bea794@mail.gmail.com \
--to=now@bitwi.se \
--cc=joerg@alea.gnuu.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).