I only have 20 % test coverage for my project. https://coveralls.io/github/montao/opsh
I want to add a test for syntax error. I am unable to receive the output "syntax error" from a simple oneliner shell command. Could you help me with some example(s)?
returns:
You can use the vast majority of
bash
's reserved words and control operators to provoke a syntax error – let's do a quick test to get a (of course incomplete!) list:I took those from
man bash
/DEFINITIONS and /RESERVED WORDS.