[Bug: 21.4.12] Shell-script mode doesn't handle $#