From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: Re: shell-mode garbles input Date: Thu, 17 Apr 2008 19:04:38 +0200 Message-ID: <87lk3co1jt.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208454390 12921 80.91.229.12 (17 Apr 2008 17:46:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2008 17:46:30 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 19:47:01 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JmXam-0007I9-74 for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 19:08:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmXa7-00066v-Ek for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 13:07:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmXa2-00066K-4g for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:07:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmXa0-00065Y-48 for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:07:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmXa0-00065V-0w for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:07:24 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JmXZz-0007i8-GL for bug-gnu-emacs@gnu.org; Thu, 17 Apr 2008 13:07:23 -0400 Original-Received: (qmail invoked by alias); 17 Apr 2008 17:07:21 -0000 Original-Received: from p54866138.dip.t-dialin.net (EHLO debian) [84.134.97.56] by mail.gmx.net (mp020) with SMTP; 17 Apr 2008 19:07:21 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19Aqg09/PBA8hNyZ88Pbm/9i3x+I7nySOLd/nvpcY tb5/zLeZsl7Mlh In-Reply-To: (jidanni@jidanni.org's message of "Thu, 17 Apr 2008 17:17:23 +0800") User-Agent: Gnus/5.110008 (No Gnus v0.8) Emacs/22.2.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17855 Archived-At: On 2008-04-17 11:17 +0200, jidanni@jidanni.org wrote: > OK, I found a case of shell-mode line garbling that maybe you can > reproduce. > > # ENV= PS1=#\ HOME=/tmp emacs -Q > M-x shell > root@jidanni1:/root# su - nobody > No directory, logging in with HOME=/ > nobody@jidanni1:/$ exit > -su: e: command not found > nobody@jidanni1:/$ -su: xit: command not found > nobody@jidanni1:/$ exit > logout > root@jidanni1:/root# Interesting, but probably not a bug in Emacs. Please try the following: log in as root on the console, type su - nobody (getting the "No directory,..." message above) and type e. Without hitting return, I got the message: -su: e: command not found. It's also funny that subsequent invocations of `su -c nobody' don't show this behavior until I log out and in again. Sven