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

Re: assigning parameters and globbing



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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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