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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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