[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing a file as root

From: Kai Grossjohann
Subject: Re: Editing a file as root
Date: Wed, 17 Dec 2003 18:06:26 +0000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

address@hidden ( Sébastien Kirche) writes:

> As a test i just tried the same commands from within eshell : i
> seems that sudo works flawlessly, but i found that i lost the prompt
> when suing.

eshell is not a real shell.  It is just elisp code.  So eshell uses
magic to recognize prompts: it prints them itself, so it knows what is
a prompt.  For su/sudo, the program prints a prompt, so eshell doesn't
recognize those as prompts.

"sudo bash -i" might give you a prompt from within eshell.  Not that
eshell will recognize it, but at least you can see it.

Use "cd" to have eshell cooperate with Tramp.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]