Change 14060 by jhi@alpha on 2002/01/04 20:06:58
Spread the good word of "env".
Affected files ...
.... //depot/perl/pod/perlhack.pod#45 edit
.... //depot/perl/pod/perllocale.pod#33 edit
.... //depot/perl/pod/perlrun.pod#51 edit
Differences ...
==== //depot/perl/pod/perlhack.pod#45 (text) ====
Index: perl/pod/perlhack.pod
--- perl/pod/perlhack.pod.~1~ Fri Jan 4 13:15:05 2002
+++ perl/pod/perlhack.pod Fri Jan 4 13:15:05 2002
@@ -1891,6 +1891,15 @@
setenv PURIFYOPTIONS "-chain-length=25"
+In Bourne-type shells:
+
+ PURIFY_OPTIONS="..."
+ export PURIFY_OPTIONS
+
+or if you have the "env" utility:
+
+ env PURIFY_OPTIONS="..." ../pureperl ...
+
=head2 Purify on NT
Purify on Windows NT instruments the Perl binary 'perl.exe'
==== //depot/perl/pod/perllocale.pod#33 (text) ====
Index: perl/pod/perllocale.pod
--- perl/pod/perllocale.pod.~1~ Fri Jan 4 13:15:05 2002
+++ perl/pod/perllocale.pod Fri Jan 4 13:15:05 2002
@@ -310,6 +310,10 @@
setenv LC_ALL en_US.ISO8859-1
+or if you have the "env" application you can do in any shell
+
+ env LC_ALL=en_US.ISO8859-1 perl ...
+
If you do not know what shell you have, consult your local
helpdesk or the equivalent.
==== //depot/perl/pod/perlrun.pod#51 (text) ====
Index: perl/pod/perlrun.pod
--- perl/pod/perlrun.pod.~1~ Fri Jan 4 13:15:05 2002
+++ perl/pod/perlrun.pod Fri Jan 4 13:15:05 2002
@@ -334,6 +334,9 @@
as it executes, the way that C<sh -x> provides for shell scripts,
you can't use Perl's B<-D> switch. Instead do this
+ # If you have "env" utility
+ env=PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program
+
# Bourne shell syntax
$ PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program
End of Patch.