GNU bug report logs - #11572
24.1.50; Emacs executable shadowed by an alias

Previous Next

Package: emacs;

Reported by: sindikat <sindikat <at> riseup.net>

Date: Mon, 28 May 2012 07:32:02 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Found in version 24.1.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: sindikat <sindikat <at> riseup.net>, 11572 <at> debbugs.gnu.org
Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias
Date: Mon, 28 May 2012 15:40:39 -0400
tags 11572 moreinfo
thanks

>> But I agree that emacsclient should not obey shell aliases, because it
>> should not run "emacs" via a shell.
> Non-interactive shells don't obey aliases.

While that's generally more or less true, the details depend on how you
define your aliases and which shell you're using.
But in any case, AFAICT emacsclient.c does not run "emacs" via a shell
(it uses execvp), so no matter what shell you use and how you define
your aliases I don't see how an "emacs" alias can cause the problem the
OP described.

Sindikat, can you really reproduce your problem with just an alias
'emacs=emacsclient -c -a ""', or do you actually need to have an "emacs"
script in your $PATH?


        Stefan




This bug report was last modified 12 years and 351 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.