← Back to team overview

desktop-packages team mailing list archive

[Bug 1378151] [NEW] Commands not saved to .bash_history when a leading space is present

 

Public bug reported:

If typing a command in gnome-terminal that contains a leading space,
that command is not in the scroll back history and not saved to
.bash_history. The command is executed as expected.

An example as follows
$ date
Tue Oct  7 11:09:23 EST 2014

but no scroll back history exists.
After closing gnome-terminal and opening again, the command is still not present in .bash_history or the scroll back.


$ lsb_release -rd
Description:	Ubuntu 14.04.1 LTS
Release:	14.04

$ apt-cache policy gnome-terminal
gnome-terminal:
  Installed: 3.6.2-0ubuntu1
  Candidate: 3.6.2-0ubuntu1
  Version table:
 *** 3.6.2-0ubuntu1 0
        500 http://au.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gnome-terminal 3.6.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
Uname: Linux 3.13.0-36-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Oct  7 11:04:32 2014
InstallationDate: Installed on 2014-07-07 (91 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-terminal (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
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/1378151

Title:
  Commands not saved to .bash_history when a leading space is present

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

Bug description:
  If typing a command in gnome-terminal that contains a leading space,
  that command is not in the scroll back history and not saved to
  .bash_history. The command is executed as expected.

  An example as follows
  $ date
  Tue Oct  7 11:09:23 EST 2014

  but no scroll back history exists.
  After closing gnome-terminal and opening again, the command is still not present in .bash_history or the scroll back.


  $ lsb_release -rd
  Description:	Ubuntu 14.04.1 LTS
  Release:	14.04

  $ apt-cache policy gnome-terminal
  gnome-terminal:
    Installed: 3.6.2-0ubuntu1
    Candidate: 3.6.2-0ubuntu1
    Version table:
   *** 3.6.2-0ubuntu1 0
          500 http://au.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: gnome-terminal 3.6.2-0ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
  Uname: Linux 3.13.0-36-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.14.1-0ubuntu3.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Oct  7 11:04:32 2014
  InstallationDate: Installed on 2014-07-07 (91 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  ProcEnviron:
   LANGUAGE=en_AU:en
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_AU.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/1378151/+subscriptions


Follow ups

References