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

Re: Prepend/append to the members of a list



On 10/30/06, Jörg Sommer <joerg@xxxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author