PROMPT_COMMAND print

Bug #1359962 reported by beta992
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Terminal
Confirmed
Undecided
Unassigned

Bug Description

bash: PROMPT_COMMAND: line 8: syntax error near unexpected token `;'
bash: PROMPT_COMMAND: line 8: `dbus-send --type=method_call --session --dest=net.launchpad.pantheon-terminal /net/launchpad/pantheon_terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:"$(history 1 | cut -c 8-)"; ; printf "\***" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'

Get's printed all the time on a new line.

Thanks. :)

Changed in pantheon-terminal:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Terminal because there has been no activity for 60 days.]

Changed in pantheon-terminal:
status: Incomplete → Expired
Revision history for this message
mareke (marek287) wrote :

same error

Revision history for this message
Santiago (santileortiz) wrote :

I managed to solve this by adding the following line to ~/.bashrc at the end

export PROMPT_COMMAND="dbus-send --type=method_call --session --dest=net.launchpad.pantheon-terminal /net/launchpad/pantheon_terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:"$(history 1 | cut -c 8-)" >/dev/null 2>&1;"

It's kind of an ugly hack, and this seems to be caused by pantheon assigning a string to the PROMPT_COMMAND beyond the actual boundary of what we want it to, so we get an extra " ; printf "\***" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'" that should not be there.

Revision history for this message
Danielle Foré (danrabbit) wrote :

Moved to "confirmed" since multiple people are experiencing this issue

Changed in pantheon-terminal:
status: Expired → New
status: New → Confirmed
Revision history for this message
will hornby (williamwhornby) wrote :

x86_64 Linux 4.6.4-1-ARCH
bash 4.3.46
XFCE4
pantheon-terminal-bzr r803-1 (https://aur.archlinux.org/packages/pantheon-terminal-bzr/)

bash: PROMPT_COMMAND: line 0: syntax error near unexpected token `;'
bash: PROMPT_COMMAND: line 0: `dbus-send --type=method_call --session --dest=org.pantheon.terminal /org/pantheon/terminal org.pantheon.terminal.ProcessFinished string:$PANTHEON_TERMINAL_ID string:"$(history 1 | cut -c 8-)" >/dev/null 2>&1; ; printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'

This issue is the same as my niece's laptop running freya 64 downloaded and installed Early August 2016.

Revision history for this message
will hornby (williamwhornby) wrote :

I know it's Arch territory, but here are some links to the problem on our end:
https://bbs.archlinux.org/viewtopic.php?id=207796
http://exceptionin.com/q/garbage-in-pantheon-terminal
https://bbs.archlinux.org/viewtopic.php?id=187536
 |-"You have 2 ';', have you tried e.g. removing one of them?"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.