In the shell scripts that are used to configure htdig and some associated
software like xpdf-3.00 are many exit statements like the list


{ (exit 1); exit 1; }


What function does the exit in a sub-shell serve?  It would have the effect of
setting the status value to 1 but the exit statement in the current shell after
it would exit with its stated value regardless.

These exit statements are often part of an enclosing list as in


   { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }


or an enclosing list which also encloses another list as in 


{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file
' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start 
ov
er" >&2;}
   { (exit 1); exit 1; }; }


What is the purpose of the lists encased in braces?  Wouldn't the commands in
the same sequence have the same effects without the defined lists?

TIA.

Douglas Kline

========
Douglas M. Kline
[EMAIL PROTECTED]





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ht://Dig general mailing list: <htdig-general@lists.sourceforge.net>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to