[Bug 210405] Re: gnome terminal ~ replacement
i can't reproduce in karmic. s...@oberon:~$ pwd /home/sam s...@oberon:~$ sudo mkdir /home/samfoo s...@oberon:~$ cd /home/samfoo title is set to "/home/samfoo" ** Changed in: bash (Ubuntu) Status: Triaged => Fix Released -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
Yes, the problem is with this substitution: ${PWD/$HOME/~}. It does not require a trailing / or end of string, so it will happily replace christopher with ~topher... In my .bashrc I use the following: local PWD2="" [[ "$PWD" == "$HOME" ]] && PWD2="~" [[ -z "$PWD2" ]] && [[ "$PWD" == "$HOME/" ]] && PWD2="~/" [[ -z "$PWD2" ]] && PWD2="${PWD/#$HOME\//~/}" ** Changed in: bash (Ubuntu) Status: Confirmed => Triaged -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
** Changed in: bash (Ubuntu) Importance: Undecided => Low Status: New => Confirmed -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
bash bug ** Changed in: bash (Ubuntu) Sourcepackagename: gnome-terminal => bash Status: Invalid => New -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
The problem I think is with this line in /etc/skel/.bashrc case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND+='; echo -ne "\033]0;[EMAIL PROTECTED]: ${PWD/$HOME/~}\007"' ;; *) ;; esac Which I believe makes this a bug in bash, I managed to produce a fix: case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND+='; echo -ne "\033]0;[EMAIL PROTECTED]: "; ([[ "$PWD" == "$HOME" || "${PWD:0:(( ${#HOME} + 1))}" == "$HOME/" ]] && echo "${PWD/$HOME/~}" || echo "$PWD"); echo -ne "\007"' ;; *) ;; esac There might be a better way but this works for me. -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
not a gnome-terminal bug then, rather something weird happening on your bashrc. ** Changed in: gnome-terminal (Ubuntu) Status: Confirmed => Invalid -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
I have the same bug in gutsy. I tested it with the kde konsole program and had the same behavour. konsole: Installiert:4:3.5.8-0ubuntu2.2 Mögliche Pakete:4:3.5.8-0ubuntu2.2 Versions-Tabelle: *** 4:3.5.8-0ubuntu2.2 0 500 http://ubuntu_mirror gutsy-updates/main Packages 100 /var/lib/dpkg/status 4:3.5.8-0ubuntu2 0 500 http://ubuntu_mirror gutsy/main Packages -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
Steps to reproduce this bug: 1. Open gnome-terminal 2. the title is set to ~ because you are in your home folder 3. sudo mkdir /home/YOURUSERNAMEBFOOBAR 4. cd /home/YOURUSERNAMEFOOBAR 5. the title is set to ~FOOBAR We expected that the title is set to /home/YOURUSERNMAEFOOBAR. ** Changed in: gnome-terminal (Ubuntu) Status: Incomplete => Confirmed -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem. We have instructions on debugging some types of problems. http://wiki.ubuntu.com/DebuggingProcedures At a minimum, we need: 1. the specific steps or actions you took that caused you to encounter the problem, 2. the behavior you expected, and 3. the behavior you actually encountered (in as much detail as possible). Thanks! ** Changed in: gnome-terminal (Ubuntu) Status: Confirmed => Incomplete -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
I can confirm this with Hardy. Distributor ID: Ubuntu Description:Ubuntu hardy (development branch) Release:8.04 Codename: hardy gnome-terminal: Installiert:2.22.0-0ubuntu1 Mögliche Pakete:2.22.0-0ubuntu1 Versions-Tabelle: *** 2.22.0-0ubuntu1 0 500 http://ports.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status ** Changed in: gnome-terminal (Ubuntu) Status: New => Confirmed -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210405] Re: gnome terminal ~ replacement
** Attachment added: "Bug Demo" http://launchpadlibrarian.net/13029026/gnome-terminal-bug.png -- gnome terminal ~ replacement https://bugs.launchpad.net/bugs/210405 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs