Subject: Different behavior w/ and w/o local
To: None <firstname.lastname@example.org>
From: Julio M. Merino Vidal <email@example.com>
Date: 09/14/2003 10:39:23
consider the following two shell functions:
And the following calls with their respective output:
$ f1 "foo bar"
$ f2 "foo bar"
Is this different behavior expected? I've seen this happens with both /bin/sh
and /bin/ksh, though there is no mention to this in manpages, afaict.
Or should I be quoting assignments, like var="$1", to avoid problems?
Julio M. Merino Vidal <firstname.lastname@example.org>
The NetBSD Project - http://www.NetBSD.org/