From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 6 Apr 2006 14:16:40 +0200 From: Vincent Lefevre To: Zsh users list Subject: Re: assigning parameters and globbing Message-ID: <20060406121640.GV1327@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Seq: zsh-users 10144 On 2006-04-06 10:27:09 +0100, Peter Stephenson wrote: > Vincent Lefevre wrote: > > I wonder why there isn't something similar in standard to avoid the "=" > > in assignments, e.g. a typeset option -e: export -e BLAH *([-1]) > > This one's easy to do with a function: > > setexport() { export $1=$2; } > setexport BLAH *([-1]) This is what I said in my message, but an option for typeset would have the advantage to be valid for local and so on, and would allow other options. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA