Peter, et al --
...and then Peter Scott said...
%
% At 08:37 AM 7/9/02 -0500, David T-G wrote:
% >
% >...and then Peter Scott said...
% >%
% >% At 09:33 AM 7/6/02 -0500, David T-G wrote:
% >% >I want to add to $ENV{'PATH'} in the parent process from my script.
...
% > `myscript.pl bash`
% > `myscript.pl tcsh`
% >
% >for that would make it work, but I haven't found anything yet.
%
% sh-2.05a$ echo $PATH
% /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/peter/bin:.
%
% sh-2.05a$ cat stage1
% PATH=`stage2`
% export PATH
%
% sh-2.05a$ cat stage2
% #!/usr/bin/perl -l
% print join ":" => qw(/sbin /usr/local/bin /etc);
%
% sh-2.05a$ . stage1
%
% sh-2.05a$ echo $PATH
% /sbin:/usr/local/bin:/etcThat's a step in the right direction, though I'm still left with a stub file because I apparently can't have my script spit out PATH=/lots/of:/stuff and read that directly (still dunno why). Thanks for the idea, though. % % -- % Peter Scott % Pacific Systems Design Technologies % http://www.perldebugged.com/ HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg27373/pgp00000.pgp
Description: PGP signature
