At Thu, 7 Aug 2003 23:45:58 +1000, Matthew Hannigan wrote:
> This behaviour has long been considered a bug
> in the shell by many.  But unfortunately it's 
> too late to change it for the standard shell.

zsh by default "does the right thing", which of course irritates the
hell out of everyone who expects it to do the legacy thing.

For reference, to expand a zsh variable and re-break it up into words
(as normal bourne shell does), you have to do ${=variable_name}.

There are standard ways of making bourne shell scripts immune to
spaces in filenames, they basically revolve around using
"$variable_name" (with the quotes) everywhere and "$@" (with the
quotes) if you want to pass all args through to some other command.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to