I had never heard of zsh before, but when I updated to Catalina, MacOS pushed me to drop bash in favor of zsh. But I recently have observed some annoying incompatibilities when trying to append to the end of a file using
cat >>. The line I want to add is copy & pasted from elsewhere in the terminal:
$ cat >> test.txt This is a test. zsh: do you wish to see all 3734 possibilities (1867 lines)?
In this case I pasted the whole line "This is a test." (including to the end of the line). Unlike bash, zsh will (sometimes?) print the pasted text in reverse video until I press return. In this case I pressed "Control-D" to indicate that I was done pasting in text. At this point, bash would give me the next prompt, but here, zsh gives me a message I don't understand. I'm strongly considering going back to bash. But I'm very curious: what does zsh think it is doing? Does anyone else see this as a bug, or at least a misfeature? It also doesn't seem to happen all the time. Sometimes instead I get the less confusing but still incorrect:
zsh: command not found: This