Example:
GNU Result:
uutils behaviour:
"extra argument 'a'" → exit 2
This example comes from the busybox test suite in the "test -f = a -o b: should be true (0)" test.
Solution:
When parsing a unary operator, look ahead to see if its a string comparison operator that has another argument. This would be in the parser.rs file in the term function. This should require only a few lines of code change and a regression test so it would be best to leave to a new contributor.