[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29122: eshell passes ARGV[0] as full path to executable
From: |
Eli Zaretskii |
Subject: |
bug#29122: eshell passes ARGV[0] as full path to executable |
Date: |
Fri, 03 Nov 2017 10:54:46 +0200 |
> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Date: Fri, 03 Nov 2017 04:30:29 -0400
> Cc: 29122@debbugs.gnu.org
>
> > $ ./a.out
> > /home/chronos/a.out
> >
> > This prints full path to the executable instead of passing the actual
> > ARGV[0].
>
> Hmm, I don't think that's really a bug though.
It isn't, IMO. AFAIK, whether the value of argv[0] is an absolute
file name or not, and whet it is, depends on the shell and on the
other circumstances.
> At any rate, to change this would require adding some option to
> make-process, as presently Emacs provides no way of calling a process
> with argv[0] different from the called executable.
I'm not sure we should make such changes. Programs that rely on
whether argv[0] is absolute or not are unportable at best, and should
be fixed, rather than blaming this on the shell.