Canonicalize OV commands to VO form.

Allows us to get rid of some obscure logic that causes an unnecessary
word shift. One error message changes in a benign way.
This commit is contained in:
Eric S. Raymond 2017-08-03 15:02:41 -04:00
parent cfa37c83a7
commit 87c6d3fb1e
3 changed files with 12 additions and 3 deletions

View file

@ -1360,8 +1360,6 @@ int action(command_t command)
return GO_CLEAROBJ;
}
if (command.word[1].id != WORD_EMPTY && command.word[1].id != WORD_NOT_FOUND)
return GO_WORD2;
if (command.verb != 0)
command.part = transitive;
}