Bash Question

Ben Kelley blk6224 at gmail.com
Thu Oct 14 15:04:15 CDT 2004


$? is the exit code of the previous command


On Thu, 14 Oct 2004 15:00:17 -0500, djgoku <djgoku at gmail.com> wrote:
> Hi Everyone,
> 
> I am working on a bash script, and currently looking at examples. I
> came across something I'm not sure what it means: if (( $? )); , the
> double quotes and the $? is what I don't get. In the script there is
> no variable set for ? so kinda lost.
> 
> Possible info: Simply enclose the particular arithmetic expression
> between a "$((" and a "))",
>                      and bash will evaluate the expression.
> 
> And also anyone have recommendation of a good bash scripting book.
> 
> Learning the bash Shell, 2nd Edition?
> 
> Thanks,
> 
> --
> dj_goku
> -www.djgoku.com-
> -www.tektronic.org-
> _______________________________________________
> Kclug mailing list
> Kclug at kclug.org
> http://kclug.org/mailman/listinfo/kclug
>



More information about the Kclug mailing list