It happens that text copied form a terminal and pasted into nano
ends up like this:
auto host0
iface host0 inet static
address 10.200.0.3
netmask 255.255.255.0
gateway 10.200.0.254
There is apparently a problem in how the combo shell (fish
in my case, but this also happens with bash
) + editor handle line returns. Interestingly enough, in my example above the first two lines whre handled correctly (that is, the first line return).
The same file open with vi
allows for a normal paste (the format of the file is preserved).
What is the setting which manages this behaviour?