[Touch-packages] [Bug 1276796] Re: Long hostname placeholder for PS1 (\H) fails in Bash

2024-02-29 Thread DronKram
The bug is present in 22.04 LTS...

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1276796

Title:
  Long hostname placeholder for PS1 (\H) fails in Bash

Status in bash package in Ubuntu:
  Confirmed

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://serverfault.com/questions/296970/bash-prompt-on-ubuntu-fqdn-h-same-as-hostname-h
  https://answers.launchpad.net/ubuntu/+source/bash/+question/200900

  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
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1276796/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1276796] Re: Long hostname placeholder for PS1 (\H) fails in Bash

2017-11-08 Thread Marc Bihlmaier
Same problem here with 16.04 LTS, 17.04 and 17.10 , when not specifying
the FQDN in /etc/hostname:

marc@marcubuntu:~$ hostname --fqdn
marcubuntu.tesdomain.intern
marc@marcubuntu:~$ hostname 
marcubuntu
marc@marcubuntu:~$ head -n 2 /etc/hosts
127.0.0.1   localhost
127.0.1.1   marcubuntu.tesdomain.intern marcubuntu
marc@marcubuntu:~$ grep PS1 .bashrc

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
 '
PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ '
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\H: \w\a\]$PS1"
marc@marcubuntu:~$ bash
marc@marcubuntu:~$ cat /etc/hostname
marcubuntu

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1276796

Title:
  Long hostname placeholder for PS1 (\H) fails in Bash

Status in bash package in Ubuntu:
  Confirmed

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://serverfault.com/questions/296970/bash-prompt-on-ubuntu-fqdn-h-same-as-hostname-h
  https://answers.launchpad.net/ubuntu/+source/bash/+question/200900

  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
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1276796/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1276796] Re: Long hostname placeholder for PS1 (\H) fails in Bash

2017-06-28 Thread Henk-Jan
This problem doesn't occur in Ubuntu 16.04 LTS

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1276796

Title:
  Long hostname placeholder for PS1 (\H) fails in Bash

Status in bash package in Ubuntu:
  Confirmed

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://serverfault.com/questions/296970/bash-prompt-on-ubuntu-fqdn-h-same-as-hostname-h
  https://answers.launchpad.net/ubuntu/+source/bash/+question/200900

  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
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1276796/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1276796] Re: Long hostname placeholder for PS1 (\H) fails in Bash

2016-01-10 Thread Renato Silva
** Attachment removed: "Solution (screenshot)"
   
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1276796/+attachment/4127824/+files/bash.canonname.png

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1276796

Title:
  Long hostname placeholder for PS1 (\H) fails in Bash

Status in bash package in Ubuntu:
  Confirmed

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://serverfault.com/questions/296970/bash-prompt-on-ubuntu-fqdn-h-same-as-hostname-h
  https://answers.launchpad.net/ubuntu/+source/bash/+question/200900

  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
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1276796/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp