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

Re: variable assignment in a script using globsubst



Vincent Stemen wrote:
> No, I "unsetopt globassign" to make sure, even though it did not show
> in the list of currently set options, but it still works from the
> command line.  I was trying to do it this way because the script I am
> working on is running in sh emulation mode and doing it as
> "files=/bin/c*" assigns it as a single string.  I ended up going ahead
> and changing the one function to zsh mode and doing it as a list to
> get around the problem, but I wonder if I have stumbled onto a bug
> here.

Do you have globsubst set?  In that case, files will be set to /bin/c*
but "echo $files" would expand the glob at that point.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



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