Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: aliases not getting expanded inside functions?
- X-seq: zsh-users 5651
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: aliases not getting expanded inside functions?
- Date: Mon, 6 Jan 2003 12:54:04 +0000
- In-reply-to: <15897.15986.562636.628562@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <15893.44217.393956.262362@xxxxxxxxxxxxxx> <20030103164552.A28966@xxxxxxxxxxx> <15893.50996.646711.184945@xxxxxxxxxxxxxx> <20030103184455.A5692@xxxxxxxxxxx> <15893.53780.524763.695176@xxxxxxxxxxxxxx> <20030103185407.GA11836@xxxxxxxx> <15897.15986.562636.628562@xxxxxxxxxxxxxx>
On Jan 6, 6:29am, Carlos Carvalho wrote:
}
} % a[1]=name1 a[2]=name2 etc.
} % b[1]=b_name1 b[2]=b_name2 etc.
}
} and then to do the transfer
}
} for ((i=1; i< number-of-elements; i++)) {
} : ${(P)b[i]::=$a[i]}
} }
I presume you mean ${(P)${b[i]}::=${(P)${a[i]}}}, but I can't figure out
_why_ you'd want to do that.
This sort of question often results from a sequence of events along the
lines of: Problem X is encountered. Solution Y is considered. Attempt
to implement Y fails at detail Z. The list is asked how to accomplish Z.
Nearly as often, the right thing is instead to ask the list how to solve
problem X, because there's a better solution than Y.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author