Hi Eric,
2009/2/25 Eric Blake <[email protected]>:
> According to Gary V. Vaughan on 2/24/2009 10:31 PM:
>>> I'm assuming that it will print oops, in which case I can modify the test
>>> to skip the test if kill fails.
>>
>> Nope, afraid it's doing something else :(
>>
>> % echo 'changequote([,])syscmd([echo "meh" && kill -9 $$ || echo
>> "oops: $?"])' | ./src/m4
>> meh
>
> What is sysval after this run?
>
> $ echo 'changequote([,])syscmd([echo "meh" && kill -9 $$ ||
> echo "oops: $?"])sysval' | ./src/m4
Oh yeah. D'uh, should've thought of that myself!
% echo 'changequote([,])syscmd([echo "meh" && kill -9 $$ ||
echo "oops: $?"])sysval' | ./src/m4
meh
127
Cheers,
Gary
--
Email me: [email protected] (\(\
Read my blog: http://blog.azazil.net ( o.O)
And my other blog: http://www.machaxor.net (uu )o
...and my book: http://sources.redhat.com/autobook ("("_)