all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 6302@debbugs.gnu.org
Subject: bug#6302: 24.0.50; Unable to use su in term.
Date: Fri, 04 Jun 2010 16:53:54 +0200	[thread overview]
Message-ID: <87iq5y4znh.fsf@tux.homenetwork> (raw)
In-Reply-To: <jwvocfrlyfm.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 04 Jun 2010 09:35:50 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> 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/





  reply	other threads:[~2010-06-04 14:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-29  5:24 bug#6302: 24.0.50; Unable to use su in term Thierry Volpiatto
2010-06-03 22:46 ` Glenn Morris
2010-06-04  7:33   ` Thierry Volpiatto
2010-06-04 13:35     ` Stefan Monnier
2010-06-04 14:53       ` Thierry Volpiatto [this message]
2010-06-10  5:08         ` Glenn Morris
2010-06-10  7:17           ` Thierry Volpiatto
2010-06-10  9:05           ` Thierry Volpiatto
2011-09-18 10:20         ` bug#5300: " Lars Magne Ingebrigtsen
2011-09-18 17:53           ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iq5y4znh.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=6302@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.