From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29122: eshell passes ARGV[0] as full path to executable Date: Fri, 03 Nov 2017 04:30:29 -0400 Message-ID: <87fu9v932y.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509698083 9776 195.159.176.226 (3 Nov 2017 08:34:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 08:34:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29122@debbugs.gnu.org To: Yegor Timoshenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 03 09:34:38 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAXQw-00020W-U2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 09:34:35 +0100 Original-Received: from localhost ([::1]:35397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAXR4-0000yw-5q for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 04:34:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAXNa-0006s7-3E for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 04:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAXNX-0002yJ-0H for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 04:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAXNW-0002yE-Ks for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eAXNW-0004vI-EG for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 04:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2017 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29122-submit@debbugs.gnu.org id=B29122.150969783918894 (code B ref 29122); Fri, 03 Nov 2017 08:31:02 +0000 Original-Received: (at 29122) by debbugs.gnu.org; 3 Nov 2017 08:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:48633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAXN9-0004ub-33 for submit@debbugs.gnu.org; Fri, 03 Nov 2017 04:30:39 -0400 Original-Received: from mail-io0-f179.google.com ([209.85.223.179]:56409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAXN7-0004uI-AU; Fri, 03 Nov 2017 04:30:37 -0400 Original-Received: by mail-io0-f179.google.com with SMTP id m81so4558558ioi.13; Fri, 03 Nov 2017 01:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qXnZOvOqt4ENyzoQgfC1niffe2W9g98S8GRq4e2NhC4=; b=uPRfN2+bPrto9pd6UBkraKcOlgMPBhSN3QFp2OleBxUt126CgmTTR/AkQK4dZBdqqG 7XErvzvPy+/oJtRygMp9iCWGMoSFfJOCupGq2X1LMUpYMN1xEJnfEz8RC07mF2i2gER/ LqfAM4CBytxf9hS+4a2fL++bAlHEIyu/a1myXEWSI2tlisDbIdl0ar3j1udbu9xmo2NB 0PaRKYeM1o9CjRoBhgQPqiVqsvIssvRhf/5c8ixnj4hgrkhhRyr3AG8PyOrZvKUwA5fa /WMDgnRaaEiTnTyisjVQvZ8PbEkmydUDjFCEXHy7wkkqlbYuRN4z6vkY1PevbQpRdacq wNGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=qXnZOvOqt4ENyzoQgfC1niffe2W9g98S8GRq4e2NhC4=; b=CmKr3E+EgF5lS8FwU19e38Sy0I1OqUHvKW9QeyHTA3Ar53L7+9QOuUadTPgXHBNYLP /EAkmIEQs1chv1FkkLEEU6rc2q3nGvqpY5rIS8joGAesL5yB7oLTc2eIgDt8GVERxu/V HyBjyjya00trTbBYXARMQ+vKtPhvASZtUlaKwvLMsG9xqgOyIPs0OwqSKrtICvTzq/sR ja0bzn3XcLVFcnKg15x2bVtg2xGLDRK9ziFp0O9YQVxEi+nQ7RicwXbPrTvkstvM9q7a YBNBR5hb+iQ3IMceAGHMbODLVdJqLHN1f2LGEGGiFDhGebEO4vsTBqzeMk+0eedOwRGC n0ew== X-Gm-Message-State: AMCzsaVZ20+1eG8mS3vy7DciBON81OlzLzKVeFne6neGyE77KKqeBLwt +dlYdveuDhGWBDAqhTvDtJvRzg== X-Google-Smtp-Source: ABhQp+SO6rBuEv8Q6y/mWB3PJ3FTsp7dkys9PsuiRZ2ry2pbethurPdLw7VsmEEZwgcB9+dgXhoY7w== X-Received: by 10.36.41.213 with SMTP id p204mr6528067itp.153.1509697831249; Fri, 03 Nov 2017 01:30:31 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j193sm902074ita.9.2017.11.03.01.30.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Nov 2017 01:30:30 -0700 (PDT) In-Reply-To: (Yegor Timoshenko's message of "Fri, 3 Nov 2017 07:33:59 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139393 Archived-At: severity 29122 wishlist quit Yegor Timoshenko writes: > $ ./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. > In other shells, say bash, ./a.out will result in `./a.out` > being printed to stdout. eshell is not a bash emulation. > This is a recent build from master. This bug is also reproducible on > latest stable release, 25.3. 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.