From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yegor Timoshenko Newsgroups: gmane.emacs.bugs Subject: bug#29122: eshell passes ARGV[0] as full path to executable Date: Fri, 3 Nov 2017 07:33:59 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1509694514 22164 195.159.176.226 (3 Nov 2017 07:35:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 07:35:14 +0000 (UTC) To: 29122@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 03 08:35:08 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 1eAWVQ-0005F9-1n for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 08:35:08 +0100 Original-Received: from localhost ([::1]:35241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAWVV-0003nu-Og for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 03:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAWVO-0003mQ-L5 for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAWVK-0004td-OU for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAWVK-0004tE-KJ for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eAWVK-0003cg-Bs for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yegor Timoshenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2017 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150969445213865 (code B ref -1); Fri, 03 Nov 2017 07:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2017 07:34:12 +0000 Original-Received: from localhost ([127.0.0.1]:48595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAWUV-0003bY-UR for submit@debbugs.gnu.org; Fri, 03 Nov 2017 03:34:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAWUT-0003bM-Hh for submit@debbugs.gnu.org; Fri, 03 Nov 2017 03:34:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAWUN-0003gM-8F for submit@debbugs.gnu.org; Fri, 03 Nov 2017 03:34:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eAWUN-0003gB-5K for submit@debbugs.gnu.org; Fri, 03 Nov 2017 03:34:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAWUM-0003jN-3C for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:34:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAWUL-0003fI-9S for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:34:02 -0400 Original-Received: from mail-ua0-x231.google.com ([2607:f8b0:400c:c08::231]:44692) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAWUL-0003f1-4Y for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 03:34:01 -0400 Original-Received: by mail-ua0-x231.google.com with SMTP id f46so1342281uae.1 for ; Fri, 03 Nov 2017 00:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MJl8nBa9sTo1LmPBvZMDVYntjx01w/ecAl2un+XINQE=; b=K3FDsrRI4h1BV6Ep8PQFUewTEHwLZ18OPsrshF1PvSPY1fKm1LxBBmPosW/3dj1ssv sh/Y71cRewVeaG1+RDN+nGBRvL6OxlpARKCgWAjr19BVXByruh+H1ONGlov1R8YnS2BX vnuH7HaxPO4ss/5Bges6m0RmQdKiqKx9bLQIj3Oc5dWF7vNQjyLvCt7Q3YVWuoDl/trw 8wCtEk6cSE5zhSYIQnGmApXgQxFUvhDo7UcfTz2XVkYBY4XVHZHu4zH0iyaaLyrXkEgF dqaX95iSgy0enwZ+SaURcyvj1Flr0vvb8nncciA9suJEmxA5gkrTgd9EXXEwWHfZlXGo Lksw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MJl8nBa9sTo1LmPBvZMDVYntjx01w/ecAl2un+XINQE=; b=YNjsZzxamVpNjAW3MZ3VNm0whpUWcTTgNbB7/k82qw8wp8PaLJneL4fue+NS+lNGo5 cO9pmL+6HPBRsMD/hOvSKD3mjBr3LVXCJ8XdZlC6j1rxHEbuo0A9gnIbekb5E8S400NF TxxilzkPpKUVvuFl66HAj+xh03gh9/O75X/76SSnaFx2TTg5jKH9TzefyxsWW4fFxBV6 QQekKYpoxe0u1K7Ewg3JeXL/mLs7sotj1mDbyEPqJjwKLg/YRHSF6iXx2ag8gKLA7Qhv F2E+7s7wXXit56OX7148D4SLpxa4KuORiE/j77MWW83Wul9Yjc9yZkXmLRiQDc5G9Oo+ 2LCA== X-Gm-Message-State: AJaThX614mxsZA7jXvZhNuGCF6SFfwV9cMcKGzozsIKPK8dGPtaWrGh+ 0BGl6FZgK8rHHbd1DwVCHOsjiNC3bCRbYFhnrsU4iw== X-Google-Smtp-Source: ABhQp+TEtwUXO3L1oJVRKMRV9MkRBbdccHovN9h15LUaHmI8ukhl2fqvyo4zA3T+3I8oGtzJ72NigzGXw0B6WuIfx3A= X-Received: by 10.176.24.218 with SMTP id d26mr5287821uah.126.1509694439952; Fri, 03 Nov 2017 00:33:59 -0700 (PDT) Original-Received: by 10.103.208.153 with HTTP; Fri, 3 Nov 2017 00:33:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:139390 Archived-At: In M-x eshell. Given this program in C in file example.c: #include int main(int argc, char *argv[]) { puts(argv[0]); } $ cc example.c $ ./a.out /home/chronos/a.out This prints full path to the executable instead of passing the actual ARGV[0]. In other shells, say bash, ./a.out will result in `./a.out` being printed to stdout. $ emacs-repository-get-version cb185dfd0c227dda14de25d450d0d684e91cafb3 $ emacs-version GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.24) of 2017-10-28 This is a recent build from master. This bug is also reproducible on latest stable release, 25.3.