gnome-terminal is sometimes not adding trailing slash when [Tab] used

Bug #792341 reported by Tomasz Nurkiewicz
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned
gnome-terminal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnome-terminal

Steps to reproduce :

$ mkdir test && cd test
$ mkdir target
$ ln -s target backup
$ ls -l
lrwxrwxrwx 1 tomasz tomasz 6 2011-06-03 14:22 backup -> target/
drwxr-xr-x 2 tomasz tomasz 4096 2011-06-03 14:22 target/

Now try:

$ cd ta
$ cd ba

Pressing [Tab] expands "ta" to "target/", while "ba" is only expanded to "backup" (notice no trailing slash). Although it's consistent with ls output, it is a bit counterintuitive, as logically both "target" and "backup" are accessible directories.

What's even more interesting, pressing [Tab] again when "ba" is already expanded to "backup" will add the trailing slash ("backup/"). Also I noticed xterm behaves exactly the same, so the reason must be somewhere deeper.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gnome-terminal 2.32.1-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jun 3 14:17:01 2011
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=pl_PL:en
 PATH=(custom, user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tomasz Nurkiewicz (nurkiewicz) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-terminal (Ubuntu):
status: New → Confirmed
Revision history for this message
ODSLabs@GMail.com (odslabs) wrote :

I too am experiencing this bug with symbolically linked directories.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Tab-completion is implemented by your shell (bash, most likely), not by gnome-terminal.

Changed in gnome-terminal (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.