rakitzis / rc

rc shell -- independent re-implementation for Unix of the Plan 9 shell (from circa 1992)
Other
250 stars 23 forks source link

syntax errors reported with -n should cause a non-zero exit #61

Closed dcantrell closed 1 year ago

dcantrell commented 4 years ago

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".