| If kill works, its return value is 0 and we need to add `&& exit 1' to
| have the complement as `|| exit 1' is only executed if kill returns >0.
Of course!!! Thanks, brain failure :(
| it was:
|
| if test $? -ne 0; then
Sorry, I missed that. Eyes failure :)
Will commit the right fix. Ag
On Mon, Feb 21, 2000 at 11:38:30AM +0100, Akim Demaille wrote:
>
> On Fri, Feb 18, 2000 at 03:39:59PM +0100, Akim Demaille wrote:
> >
> > Could you change tests/tools.m4 from
> >
> > # A script in charge of testing `/bin/sh -n'.
> > AT_DATA(syntax.sh,
> > [[set -e
> > (/bin/sh -n endless.sh) &
On Fri, Feb 18, 2000 at 03:39:59PM +0100, Akim Demaille wrote:
>
> Could you change tests/tools.m4 from
>
> # A script in charge of testing `/bin/sh -n'.
> AT_DATA(syntax.sh,
> [[set -e
> (/bin/sh -n endless.sh) &
> cpid=$!
> sleep 2 && kill $cpid >/dev/null 2>&1
> ]])
You need to use the || e
On Fri, Feb 18, 2000 at 04:44:29PM +0100, Akim Demaille wrote:
>
> | On Fri, Feb 18, 2000 at 03:39:59PM +0100, Akim Demaille wrote:
> | >
> | > Could you change tests/tools.m4 from
> | >
> | > # A script in charge of testing `/bin/sh -n'.
> | > AT_DATA(syntax.sh,
> | > [[set -e
> | > (/bin/sh -
| On Fri, Feb 18, 2000 at 03:39:59PM +0100, Akim Demaille wrote:
| >
| > Could you change tests/tools.m4 from
| >
| > # A script in charge of testing `/bin/sh -n'.
| > AT_DATA(syntax.sh,
| > [[set -e
| > (/bin/sh -n endless.sh) &
| > cpid=$!
| > sleep 2 && kill $cpid >/dev/null 2>&1
| > ]])
| >