From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 5 Apr 2006 00:34:50 +0200 From: Vincent Lefevre To: Zsh users list Subject: Re: assigning parameters and globbing Message-ID: <20060404223450.GG1327@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Seq: zsh-users 10133 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA