Description:
Parsing test.
The purpose of this test is to check that the OR operator || must be placed after a valid command.
If not, the Shell should display an error and exit with an error status code.
STDIN:
01: || ./write_on_stdout TOKEN201612111732
STDOUT:
WARNING might be_empty
01: 42sh: parse error near '||'
bonuses/separators/or/errors/001-parse-error-at-beginning (WARNING)
Description: Parsing test. The purpose of this test is to check that the OR operator
||
must be placed after a valid command. If not, the Shell should display an error and exit with an error status code.STDIN: 01: || ./write_on_stdout TOKEN201612111732
STDOUT: WARNING might be_empty 01: 42sh: parse error near '||'
STDERR: WARNING might_not be_empty WARNING might match_regex
([Ss]yntax|[Pp]arse) error
(no output)MISC: WARNING might_not exit_with_status
0