all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: yegortimoshenko@gmail.com, 29122@debbugs.gnu.org
Subject: bug#29122: eshell passes ARGV[0] as full path to executable
Date: Fri, 03 Nov 2017 10:54:46 +0200	[thread overview]
Message-ID: <83a803wxm1.fsf@gnu.org> (raw)
In-Reply-To: <87fu9v932y.fsf@users.sourceforge.net> (message from Noam Postavsky on Fri, 03 Nov 2017 04:30:29 -0400)

> 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.





  reply	other threads:[~2017-11-03  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03  7:33 bug#29122: eshell passes ARGV[0] as full path to executable Yegor Timoshenko
2017-11-03  8:30 ` Noam Postavsky
2017-11-03  8:54   ` Eli Zaretskii [this message]
     [not found]     ` <CAF4sQCM56=6y=1Lrg9RAQo+ui2kRSqRVHiarYYX=i6FGDv3C_A@mail.gmail.com>
2017-11-03 10:02       ` Eli Zaretskii
2017-12-13  3:29         ` Noam Postavsky

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=83a803wxm1.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=29122@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    --cc=yegortimoshenko@gmail.com \
    /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.