New answers tagged


Change TOPIC="dogs cats" to TOPIC='"dogs cats"' to have " embedded inside the variable.


Not so quick, but zsh (and bash maybe?) has this feature called fc, I'm not sure what it stands for but if you type it, it seems to open up the command in whatever your $EDITOR is. Or maybe you could do history | tail -1 >> file. In terms of doing a heredoc in one line, this: ~$ echo -e "cat << EOF\nhello\n12345\nEOF\n" | sh hello 12345 is ...


According to XTerm Control Sequences, those are responses for a particular flavor of mouse, "SGR (1006)". Your terminal was perhaps initialized to send those, e.g., in continuous mode, and on resizing you are seeing the effect of your mouse movement relative to the screen.

Top 50 recent answers are included