diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-30 07:24:18 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-30 07:24:18 +0000 |
commit | f9cbb277dec3cb2700132dedd25b05ea72cda45a (patch) | |
tree | c90809fb1f5cde1a09f44978437a59f86cec8120 /pod/perlvar.pod | |
parent | ecce83c2318389c6dd5770c975354bb2411bd50f (diff) | |
download | perl-f9cbb277dec3cb2700132dedd25b05ea72cda45a.tar.gz |
$0 doc tweakage.
p4raw-id: //depot/perl@19888
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 7667f1d75d..af50613fd3 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -840,11 +840,15 @@ and C<$)> can be swapped only on machines supporting setregid(). Contains the name of the program being executed. On some (read: not all) operating systems assigning to C<$0> modifies the argument area -that the B<ps> program sees. Also note that depending on the platform, -the maximum length of C<$0> may be limited to the space occupied by -the original C<$0>. This is more useful as a way of indicating the -current program state than it is for hiding the program you're -running. (Mnemonic: same as B<sh> and B<ksh>.) +that the C<ps> program sees. On some platforms you may have to use +special C<ps> options or a different C<ps> to see the changes. +Modifying the $0 is more useful as a way of indicating thecurrent +program state than it is for hiding the program you're running. +(Mnemonic: same as B<sh> and B<ksh>.) + +Note that there are platform specific limitations on the the maximum +length of C<$0>. In the most extreme case it may be limited to the +space occupied by the original C<$0>. Note for BSD users: setting C<$0> does not completely remove "perl" from the ps(1) output. For example, setting C<$0> to C<"foobar"> will |