Re: gbs cleanup patch, 2nd try

2004-10-30 Thread Andrew Schulman
Great. Have you tested whether the -e flag gets propagated inside the functions? Yes, I have now: $ /bin/sh -e ; echo finished /bin/sh -e, status=$? $ echo $- eims $ # the -e flag propagates into subshells: $ tst1() { echo $- ; } $ tst1 eims $ # false result inside a function

Re: gbs cleanup patch, 2nd try

2004-10-30 Thread Andrew Schulman
Sorry, the above is wrong: Sorry again, but please disregard my previous message. I was confused because I was testing some features of /bin/sh -e on Debian. On Debian /bin/sh invokes bash, while on Cygwin it runs ash. It turns out that these two handle subshells with -e differently:

gbs cleanup patch, 2nd try

2004-10-29 Thread Andrew Schulman
Here is my second attempt at a gbs cleanup patch: 2004-10-29 Andrew E. Schulman [EMAIL PROTECTED] * generic-build-script: cleanups. - Remove superfluous ;'s and line-ending \'s - Invoke /bin/sh with -e - Remove 's joining commands; obviated by -e - Remove STATUS checks at end; obviated