Summary: | sudo/su emerge produces superfluous newlines w/ xterm/rxvt | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Ted Tanberry <ted.tanberry> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED CANTFIX | ||
Severity: | trivial | CC: | kenyon |
Priority: | High | ||
Version: | 2.1 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ted Tanberry
2008-03-03 10:33:42 UTC
I use 'sudo emerge' in rxvt-unicode all the time, and I've never seen this. Also, I'm not sure how this *could* be portage's fault. The newlines are on the shell prompt, which is before portage is invoked or after it's done running. (In reply to comment #1) > I use 'sudo emerge' in rxvt-unicode all the time, and I've never seen this. > Also, I'm not sure how this *could* be portage's fault. The newlines are on the > shell prompt, which is before portage is invoked or after it's done running. > I filed it as an emerge bug mainly because it only seems to happen with emerge. Also interesting to note that it will not produce these superfluous lines in console, only in a X terminal emulator. What about running emerge without su/sudo (as normal user or in a root shell)? What about `su -l -c`? (In reply to comment #3) > What about running emerge without su/sudo (as normal user or in a root shell)? > What about `su -l -c`? > Same thing: soap@soaplaptop ~ $ su -l -c "emerge example" Password: Calculating dependencies \ emerge: there are no ebuilds to satisfy "example". soap@soaplaptop ~ $ soap@soaplaptop ~ $ soap@soaplaptop ~ $ soap@soaplaptop ~ $ Yet, using emerge in a root shell (after having su'ed into it) or as normal user works fine, JUST when using su or sudo do I get these lines. What output do you get for these commands? echo $TERM ; echo $PROMPT_COMMAND su -c 'echo $TERM ; echo $PROMPT_COMMAND' oap@soaplaptop ~ $ echo $TERM ; echo $PROMPT_COMMAND xterm echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007" soap@soaplaptop ~ $ su -c 'echo $TERM ; echo $PROMPT_COMMAND' Password: xterm soap@soaplaptop ~ $ sudo sh -c 'echo $TERM ; echo $PROMPT_COMMAND' xterm That's it. (In reply to comment #6) > soap@soaplaptop ~ $ sudo sh -c 'echo $TERM ; echo $PROMPT_COMMAND' > xterm > > > That's it. > Did you find out where the annoying PROMPT_COMMAND value was coming from? (In reply to comment #7) > (In reply to comment #6) > > soap@soaplaptop ~ $ sudo sh -c 'echo $TERM ; echo $PROMPT_COMMAND' > > xterm > > > > > > That's it. > > Did you find out where the annoying PROMPT_COMMAND value was coming from? I'm also getting these extra newlines (seemingly) randomly and only when doing sudo emerge or su -c emerge. I don't think it's related to PROMPT_COMMAND because it still happens when PROMPT_COMMAND is unset. The newlines happen in xterm and konsole. This only started happening fairly recently, like within the last couple weeks. |