Tom Van Looy wrote:
Oke, problem solved. But, why doesn't this flag get set implicitly when using a command with ssh?
Because it's not 8bit-clean, the tty layer can change the data. It's usually ok for text, but it messes up binary data so having it on all the time would make ssh pipelines a lot less useful.
$ dd if=/dev/arandom of=/tmp/tmp1 bs=1k count=1k 2>/dev/null $ ssh -t localhost "cat /tmp/tmp1" >/tmp/tmp2 Connection to localhost closed. $ ls -l /tmp/tmp* -rw-r--r-- 1 dtucker staff 1048576 Jul 2 07:49 /tmp/tmp1 -rw-r--r-- 1 dtucker staff 1067393 Jul 2 07:50 /tmp/tmp2 -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.