[X-Unix] Console in a Subshell?

Eric F Crist ecrist at secure-computing.net
Thu Aug 16 19:08:49 PDT 2007


On Aug 16, 2007, at 6:24 PMAug 16, 2007, Jerry Krinock wrote:

>
> On 2007 Aug, 16, at 15:32, Brian Medley wrote:
>
>> You're capturing output.  If youw ant the return value do
>> something like:
>>
>>     perlscript.pl arg1 arg2
>>     echo $?
>
> Thank you, Brian.  Makes sense and works.  I didn't know that bash  
> had handy built-in variables like perl does.  It's kind of hard to  
> Google for documenation on "?", but apparently "?" is in bash like  
> "_" is in perl.  Very handy.
>

AFAIK, that's pretty standard among almost all shells and scripting  
languages.

-----
Eric F Crist
Secure Computing Networks




More information about the X-Unix mailing list