← Back to team overview

desktop-packages team mailing list archive

[Bug 1376152] Re: scp remote fail when exists "echo" command in the .bashrc script

 

This is not a gnome-terminal bug, but due to the design of ssh/scp.

In your .bashrc/.profile, make the echo happen only if it's output to a terminal, e.g.
if [ -t 1 ]; then
  echo whatever you wish to see on login
fi

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1376152

Title:
  scp remote fail when exists "echo" command in the .bashrc script

Status in “gnome-terminal” package in Ubuntu:
  New

Bug description:
  Generally executing scp will result as below:

  wen@wen-U31Jg:~$ scp ./test.txt localhost:~/tmp
  test.txt                                                     100%    5     0.0KB/s   00:00 

  But when there exist "echo enter .bashrc  ..." line in .bashrc file,
  the same command failed without any error message:

  wen@wen-U31Jg:~$ scp ./test.txt localhost:~/tmp
  Enter .bashrc ......

  And of course, the file DOES NOT copy to the remote destination.
  Thanks.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-terminal 3.4.1.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-69.103-generic 3.2.62
  Uname: Linux 3.2.0-69-generic x86_64
  ApportVersion: 2.0.1-0ubuntu17.7
  Architecture: amd64
  Date: Wed Oct  1 15:54:44 2014
  InstallationMedia: Xubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=zh_TW:en
   PATH=(custom, no user)
   LANG=zh_TW.UTF-8
   SHELL=/bin/bash
  SourcePackage: gnome-terminal
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1376152/+subscriptions


References