Okay I have a very small two line script that does three things. It sets the PATH, exports the PATH, and puts me in a bash shell. Please don't ask me why I have to make this file, I just do. I know there are other ways to do this automatically but it's a long story involving pain and yelling.
This is the script:
$result = system("PATH=$PATH:/usr/local:/usr/local/bin:/usr/ccs:/usr/c
+cs/bin:/usr/ucb; export PATH; bash;");
print $result . "\n";
My question is this: Why is the result is not printed after the script runs? Whenever I type exit
on the command line, then the result is printed. It's as if I am inside a constantly running perl script. I have tried sticking an exit; on the end of my script but that does nothing.
Thanks for your help.
Fates! We will know your pleasures: That we shall die, we know; 'Tis but the time, and drawing days out, that men stand upon. - Act III,I, Julius Caesar