unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19477: 24.4; Init script from su terminal
@ 2014-12-31 16:36 Álvar Ibeas
  2014-12-31 18:36 ` Glenn Morris
       [not found] ` <mailman.17015.1420051024.1147.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Álvar Ibeas @ 2014-12-31 16:36 UTC (permalink / raw)
  To: 19477

Hello,

Working under Debian, when I switch to root using `su', Emacs doesn't
load the init script located in my user's home folder, as the manual
says:

``if you run Emacs from a shell started by `su', Emacs tries to find
your own `.emacs', not that of the user you are currently pretending
to be [...] It gets your user name from the environment variables
`LOGNAME' and `USER'.''

The variables LOGNAME and USER have both the value `root'. The command
`logname' returns instead my own user name.

Is this an Emacs bug?






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-02 19:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-31 16:36 bug#19477: 24.4; Init script from su terminal Álvar Ibeas
2014-12-31 18:36 ` Glenn Morris
     [not found] ` <mailman.17015.1420051024.1147.bug-gnu-emacs@gnu.org>
2014-12-31 19:34   ` Álvar Ibeas
2015-01-02 19:01     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).