David Given wrote:
Adding -l does produce an exit status of 0 --- but will this still cause
genuine failures if, for example, there's a syntax error in the script?

Sadly the current implementation of '-l' is pretty simple. It will ignore about any error:

$ ed -v ; echo $?
b
?
Unknown command
q
1

$ ed -v -l ; echo $?
b
?
Unknown command
q
0

_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to