jgreco
Resident Grinch
- Joined
- May 29, 2011
- Messages
- 18,680
So a year or two ago, the default shell for root was changed to ZSH.
For those of us who are lifelong sh/csh/tcsh users, this is a bit disconcerting. It places my preference to avoid making changes to a system baseline dead in conflict with my not understanding an apparently idiotic behaviour.
I prefer to avoid the use of ZFS replication in cases where dealing with file archives. I would rather use rsync and keep independent snapshots on each side. This makes it virtually impossible to end up with a catastrophe on one side being replicated to the remote.
However, a file tree reorganization becomes an expensive operation, because if you do
mv /mnt/pool/iso/freebsd /mnt/pool/iso/unix/freebsd
on the source side, then rsync will merrily re-copy all the files over the network. The solution to this is to execute the same command on the target host, keeping the trees in sync and not requiring the retransmission of the files.
Therefore, it is not uncommon for me to execute the command I want on one filer, and then cut and paste it to a command prompt on the other. This often happens using PuTTY on Windows.
What I am trying to understand is what is the "feature" in ZSH that captures and highlights the pasted text, rather than interpreting it as something, I really do mean Yes I Really Want You To Do This.
I found the obvious Google fu at
askubuntu.com
etc. but the "fix" only stops it from highlighting. The underlying behaviour still requires you to hit ENTER after pasting, and this is very jarring. I've had no luck finding what the correct incantation is to have it just execute the pasted text as though it had been typed.
Since this seems to be broken by design, and since there's a dozen other really annoying and/or really stupid things ZSH does that collide with decades of familiar tcsh actions, I may not actually do anything with an answer to my inquiry here, but I at least like to make an informed choice and understand what's going on. Why is a paste to ZSH being "held for edit"?
For those of us who are lifelong sh/csh/tcsh users, this is a bit disconcerting. It places my preference to avoid making changes to a system baseline dead in conflict with my not understanding an apparently idiotic behaviour.
I prefer to avoid the use of ZFS replication in cases where dealing with file archives. I would rather use rsync and keep independent snapshots on each side. This makes it virtually impossible to end up with a catastrophe on one side being replicated to the remote.
However, a file tree reorganization becomes an expensive operation, because if you do
mv /mnt/pool/iso/freebsd /mnt/pool/iso/unix/freebsd
on the source side, then rsync will merrily re-copy all the files over the network. The solution to this is to execute the same command on the target host, keeping the trees in sync and not requiring the retransmission of the files.
Therefore, it is not uncommon for me to execute the command I want on one filer, and then cut and paste it to a command prompt on the other. This often happens using PuTTY on Windows.
What I am trying to understand is what is the "feature" in ZSH that captures and highlights the pasted text, rather than interpreting it as something, I really do mean Yes I Really Want You To Do This.
I found the obvious Google fu at

How to stop pasted text being highlighted in terminals in Ubuntu 16.10?
Since upgrading to Ubuntu 16.10 from 16.04, every time I paste text into a terminal running zsh, that text is highlighted until I type another character. It doesn't seem to matter which terminal em...
etc. but the "fix" only stops it from highlighting. The underlying behaviour still requires you to hit ENTER after pasting, and this is very jarring. I've had no luck finding what the correct incantation is to have it just execute the pasted text as though it had been typed.
Since this seems to be broken by design, and since there's a dozen other really annoying and/or really stupid things ZSH does that collide with decades of familiar tcsh actions, I may not actually do anything with an answer to my inquiry here, but I at least like to make an informed choice and understand what's going on. Why is a paste to ZSH being "held for edit"?