Long hostname placeholder for PS1 (\H) fails in Bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When using "\H" in the PS1 prompt value bash is not displaying the FQDN but instead only the short form hostname. This is the same as "\h".
Issue has also been noted at
http://
https:/
This appears related to /etc/hostname only having the host and not the FQDN.
Bash should obtain the \H value from somewhere other than /etc/hostname.
---
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
DistroRelease: Ubuntu 13.10
InstallationDate: Installed on 2014-01-16 (20 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
MarkForUpload: True
Package: bash 4.2-5ubuntu3
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: saucy
Uname: Linux 3.11.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
summary: |
- bash fails to provide FQDN for PS1 with \H + Long hostname placeholder for PS1 (\H) fails in Bash |
Hello,
we need some more information. From a terminal window please run:
apport-collect 1276796
and then change the status of the bug to 'Confirmed'.
Jörg