Hi, all,
This seems like black magic to me. I've wrote this small example to
try to understand a problem with a bigger script.
#!/usr/bin/env rc
if (test 1 -ne 1) {
echo I am insane.
}
if not {
echo I am not insane.
}
Obviously, when I run it, I get:
I am not insane.
However, using (where 'listen_test.rc' is the name I gave this
script):
listen1 'tcp!localhost!8080' ./listen_test.rc
and
echo Hi | dial -e 'tcp!localhost!8080'
what I get is:
I am insane.
How can running a script throw 'listen1' can get 'rc' to fail an 'if'
test?!?!
Thanks for your help,
Maurício