SPUG: assigning to $0; different Linuces
Ben Reser
ben at reser.org
Fri Aug 29 00:38:46 CDT 2003
On Thu, Aug 28, 2003 at 07:10:39PM -0700, David Dyck wrote:
> I agree with Ben.
Looks like I was wrong...
> $ cmdline aaa bbb
> before:
> cmdline=/usr/local/bin/perl\0-w\0/usr0/dcd/bin/cmdline\0aaa\0bbb\0
> stat=cmdline
> after:
> cmdline=foo
> stat=cmdline
On Mandrake Linux 9.1/ppc.
[breser at titanium breser]$ perl cmdline aaaa bbbb
before:
cmdline=perl\0cmdline\0aaaa\0bbbb\0
stat=perl
after:
cmdline=perl\0cmdline\0aaaa\0bbbb\0
stat=perl
Perhaps, there is a kernel component to this..
--
Ben Reser <ben at reser.org>
http://ben.reser.org
"What upsets me is not that you lied to me, but that from now on I can
no longer believe you." -- Nietzsche
More information about the spug-list
mailing list