Auto Completion Not Working on Upstart Job Names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Yes, I did report a bug with a same title. And yes, I did close it. And no, I didn't figure out why it doesn't work by digging into .bashrc & .profile. So, here we are again. Sorry...
To Reproduce:
In Gnome Terminal:
$ sudo touch /etc/init/
$ sudo start foo<tab>
Expected:
foobar is auto-completed.
Actually:
Nothing happens.
Additional Information:
Upstart auto completion script uses 'initctl list' to do the trick, and running 'initctl list' as non-root only shows the session jobs.
$ initctl list | grep foo
$
However, it is not the case if running in a login shell.
$ ssh localhost initctl list | grep foo
foobar stop/waiting
$
I used 'dbus-monitor --system' to see if there is something unusual. Here is what I see when I run 'initctl list' in an SSH session, but not in a non-login session. But I actually know nothing about DBus, so I don't even know for sure whether this information is relevant or not.
signal sender=
string "org.freedeskto
string ":1.162"
string ""
signal sender=
string ":1.162"
string ":1.162"
string ""
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: upstart 1.13.2-0ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-29-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Jan 31 19:31:21 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-01-27 (3 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
ProcKernelCmdline: BOOT_IMAGE=
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)
UpstartBugCategory: System
UpstartRunningS
UpstartRunningS
Alright. I'm closing this since we have switched to Systemd now.