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

Re: assigning parameters and globbing



On 2006-04-04 13:58:17 +0100, Peter Stephenson wrote:
> Note that the syntax you're using relies on array handling even though
> you're explicitly extracting a single element at the end, and even
> though it's smart enough to make BLAH a scalar in the case of a normal
> assignment.  Indeed, GLOB_ASSIGN is vaguely deprecated (meaning there
> are no plans to remove it but it's safer not to use it) partly because
> you can't predict if the result of the assignment is a scalar or an
> array.

What do you suggest to set an environment BLAH to *([-1]) or something
similar (globbing that leads to a single filename -- which may contain
special characters)?

-- 
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