Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ok, so I have used linux for a long time but this is the weirdest thing I have encountered in a long time. Maybe I just don't do a lot of scp so probably missing something simple here. So in my .bashrc file I have the following.

export KERNEL=$(uname -r)
if [ $KERNEL == "2.6.32-431.3.1.el6.x86_64" ];then
   ... logic here
    .. more logic

Now if I uncomment that echo line then the following command doesn't work! It just shows the echo but doesn't do any copying. If I remove that line it does the copy

$ scp -r host1.net:/prod/path1/path2/dir1/etc /tmp/user/sim/dir1
HOST: host1.net: KERNEL VERSION: 3.4.70-1.el6.companyX

$ scp -r host1.net:/prod/path1/path2/dir1/etc /tmp/user/sim/dir1

pybackup 100% 174 0.2KB/s 00:00
Proxy.ini 100% 623 0.6KB/s 00:00

This is strange...

share|improve this question
I happened to find a good answer here: stackoverflow.com/a/12442753 –  Spiff Mar 17 '14 at 17:32
thanks for this. Good to know I wasn't losing it :) –  bjackfly Mar 17 '14 at 21:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.