"Derek R. Price" wrote:

> "Derek R. Price" wrote:
>
> >     AUTOCONF='exit 77 &&'
>
> Excuse me:
>
>     AUTOCONF='exit 77 && dummy'
>
> to keep the parser eternally happy.

Or almost eternally happy.  Due to some wierdness where my Bash only evaluates a
variable as a single command (i.e. ignoring ';', '&&', & '||'), the following was
necessary:


     test='eval exit 77 && dummy'

This does the Right Thing (tm) in all the following cases:


     $test
     ($test)
     $test -args and -more args
     :; $test; dummy; more
     : && $test
     : || $test
     false || $test
     false && $test
     $test && :
     $test || :
     $test && false
     $test || false
     if $test; then :; fi

I expect more parens aren't going to change anything.  Did I miss anything?

Derek
--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED]     OpenAvenue ( http://OpenAvenue.com )
--
The policy of the American government is to leave their citizens free, neither
restraining nor aiding them in their pursuits.

                        - Thomas Jefferson


Reply via email to