From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#6302: 24.0.50; Unable to use su in term. Date: Fri, 04 Jun 2010 16:53:54 +0200 Organization: ThierryVolpiatto Message-ID: <87iq5y4znh.fsf@tux.homenetwork> References: <87pr0fth4g.fsf@tux.homenetwork> <1taarbd9av.fsf@fencepost.gnu.org> <87aarbb6bg.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275666513 18723 80.91.229.12 (4 Jun 2010 15:48:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 15:48:33 +0000 (UTC) Cc: 6302@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 04 17:48:32 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OKZ8G-0003aZ-Rt for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 17:48:29 +0200 Original-Received: from localhost ([127.0.0.1]:53508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKZ8F-000550-PO for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 11:48:27 -0400 Original-Received: from [140.186.70.92] (port=48463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKYoe-0000IS-SG for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 11:28:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKYoc-0007bW-Su for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 11:28:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50794) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKYoc-0007bS-Ra for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 11:28:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKYLS-0001rl-8X; Fri, 04 Jun 2010 10:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6302-submit@debbugs.gnu.org id=B6302.12756634457160 (code B ref 6302); Fri, 04 Jun 2010 14:58:02 +0000 Original-Received: (at 6302) by debbugs.gnu.org; 4 Jun 2010 14:57:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKYKq-0001rR-Bz for submit@debbugs.gnu.org; Fri, 04 Jun 2010 10:57:24 -0400 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKYKo-0001rK-93 for 6302@debbugs.gnu.org; Fri, 04 Jun 2010 10:57:23 -0400 Original-Received: by wyf23 with SMTP id 23so914117wyf.3 for <6302@debbugs.gnu.org>; Fri, 04 Jun 2010 07:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=1FQh5VmlgtP8+B2BXQYZtkeCyWxcpymJt+w0ScwYhwc=; b=CEw+gsycOvSOoBQaYVPjEj4sob33dpSzFIweISuhChjenPK8GUkXv7ysiK4Qx9ssgj DHhJ92p0hgSJMgiBGl1xCAkybJeODCyQtOMfu0dNqzna7FPjKgylAXKdGvEXfkCrDEGx SEzNDSEJ6MeScFDL4cR87Mz8KOJuzlFyibsJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=lZbwEb+VltklQq9QskIQP2rY6zUJ3kSq6W6Hg5as+dCAPohOGbVN6syzyt/UsJQLgz VEdi/KtYgduAELuQ3X72VZ7OtxUaUQzJg1T2HNHJv4NP8FoewhMXEztvWmOACMPZtufh URCdfJmEzOdX8dwAgBT9Y6c71m+XfGub4Xh+8= Original-Received: by 10.227.151.77 with SMTP id b13mr10793855wbw.13.1275663433967; Fri, 04 Jun 2010 07:57:13 -0700 (PDT) Original-Received: from tux.homenetwork (171.78.88-79.rev.gaoland.net [79.88.78.171]) by mx.google.com with ESMTPS id l23sm10655235wbb.8.2010.06.04.07.57.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Jun 2010 07:57:13 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 04 Jun 2010 09:35:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 04 Jun 2010 10:58:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:37539 Archived-At: Stefan Monnier writes: >> I found what is not working. >> I use an alias in my .bashrc to force emacs shell using the word Password >> as prompt for su command: > >> ,---- >> | alias su="LC_ALL=C su -l" >> `---- > >> Emacs shell support that but term doesn't. > > How 'bout taking the alias out of the question and try Alias is disabled and i start with a new M-x term: > thierry@tux ~ $ LC_ALL=C su -l Fail. > and > thierry@tux ~ $ LC_ALL=C su Yes it is working. > and > thierry@tux ~ $ su -l Fail. (same with --login and -) So it's clear that come from the -l option of su. >> Without that alias or when running sh instead of bash term work as expected. > > What do you mean by "running sh instead of bash"? M-x term ==> Run program: /bin/sh (same doesn't work with su -l) > Do you mean the shell from which you execute "su" or the shell of the > user to which you're su-ing? The first. > Also, can you M-x trace-function-background RET term-emulate-terminal > RET, reproduce the problem and then show us the *trace-output*? I can't find function `term-emulate-terminal'. -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/