I want to perform a syntax check of rc scripts using /bin/rc scripts using the -n option, similar to what other shells can do. Right now rc will print the syntax errors on stderr, but it exits 0. I would like a 0 exit status to indicate "syntax is good" and non-zero to indicate "syntax is bad".
I want to perform a syntax check of rc scripts using /bin/rc scripts using the -n option, similar to what other shells can do. Right now rc will print the syntax errors on stderr, but it exits 0. I would like a 0 exit status to indicate "syntax is good" and non-zero to indicate "syntax is bad".