Fix #3980, reject compound commands that start with not, and or or