[kw-pm] why is my $PWD uninitialized?
Christopher Calzonetti
elbie at trig.net
Mon May 31 06:14:10 PDT 2010
On Mon, May 31, 2010 at 09:02:03AM -0400, Robert P. J. Day wrote:
>
> $ sudo test/udev-test.pl
> Use of uninitialized value $PWD in concatenation (.) or string at test/udev-test.pl line 1735.
shikamaru:~ elbie$ perl -e 'print "\"$ENV{PWD}\"", "\n";'
"/Users/elbie"
shikamaru:~ elbie$ sudo perl -e 'print "\"$ENV{PWD}\"", "\n";'
""
Sudo by default calls a reset of the environment. See the man page for
more information.
--
Christopher Calzonetti, Technical Lead, Trig.Net
Web: http://www.trig.net/ Mail: mailto:chris at trig.net
More information about the kw-pm
mailing list