on Plan 9 Port, the following Rc script fails silently, upon calling the `foo' 
function in ``if (foo)''. i expected it to output `FAIL' instead. is that by 
design, or is it some sort of a bug?


#!/usr/bin/env rc

flag e +

fn foo {
        /bin/false
}

if (foo)
        echo SUCCESS
if not
        echo FAIL



for contrast, the following script outputs `FAIL' as expected -- the 
difference being in calling the /bin/false directly in ``if(/bin/false)''

#!/usr/bin/env rc

flag e +

if (/bin/false)
        echo SUCCESS
if not
        echo FAIL

-- 
dexen deVries

[[[↓][→]]]

Take care of the luxuries and the necessities will take care of themselves.
                -- L. Long


Reply via email to