Tom Allison wrote: > Bryan R Harris wrote: >> >> Is there a way to determine in perl whether the current script was run >> from >> a login shell or not? > > ENV{PS1} ??? > > That's mentioned in my .bashrc script > > > # If running interactively, then: > if [ "$PS1" ]; then > > > so I assume that it's part of the %ENV and if so defined....
~> echo "*$PS1*" *\w> * ~> perl -le'print "*$ENV{PS1}*"' ** Never assume ... :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>