[Konsole-devel] [Bug 293710] New: A trailing / in --workdir argument messes up how PS1 is displayed in konsole

Ahmad Samir ahmadsamir3891 at gmail.com
Thu Feb 9 12:48:22 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=293710

           Summary: A trailing / in --workdir argument messes up how PS1
                    is displayed in konsole
           Product: konsole
           Version: 2.8.999
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: ahmadsamir3891 at gmail.com


It seems that --workdir doesn't handle trailing /'s correctly:

$ konsole --workdir /usr/share/icons/
Konsole displays this:
[a at localhost ]$ 

But this works correctly:
$ konsole --workdir /usr/share/icons
[a at localhost icons]$ 

notice how the basename of the dir path, "icons", isn't displayed in the first
case.

My shell is BASH, here's some info:
$ echo $PS1
[\u@\h \W]\$

$ echo $PROMPT_COMMAND
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"

$ echo $PWD
/usr/share/icons/

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list