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: Tue, 12 Dec 2017 22:29:35 -0500 Message-ID: <87fu8fcnkw.fsf@users.sourceforge.net> References: <87fu9v932y.fsf@users.sourceforge.net> <83a803wxm1.fsf@gnu.org> <83tvybvfx9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513135814 18769 195.159.176.226 (13 Dec 2017 03:30:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 03:30:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Yegor Timoshenko , 29122@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 13 04:30: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 1eOxkE-0004YT-Dz for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 04:30:06 +0100 Original-Received: from localhost ([::1]:33374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOxkL-0001uA-N6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Dec 2017 22:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOxkF-0001t9-Pn for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 22:30:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOxkA-0005cB-T2 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 22:30:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOxkA-0005c1-P7 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 22:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eOxkA-0002OD-IX for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 22:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Dec 2017 03:30: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.15131357889120 (code B ref 29122); Wed, 13 Dec 2017 03:30:02 +0000 Original-Received: (at 29122) by debbugs.gnu.org; 13 Dec 2017 03:29:48 +0000 Original-Received: from localhost ([127.0.0.1]:59239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOxjw-0002N2-MQ for submit@debbugs.gnu.org; Tue, 12 Dec 2017 22:29:48 -0500 Original-Received: from mail-it0-f52.google.com ([209.85.214.52]:44977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOxjr-0002MZ-Fc; Tue, 12 Dec 2017 22:29:43 -0500 Original-Received: by mail-it0-f52.google.com with SMTP id b5so2186593itc.3; Tue, 12 Dec 2017 19:29:43 -0800 (PST) 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=R+jNFjWd4DZWQan+LGClDCexVphmj7EPXU+zeNFwGD8=; b=mnV5AlZUsfamG2k5H2UwTuiq2iJ/hNSwRBctn492ZCRoSHz1ueXczkpZJCW0e4a6uv EVTKTNy7HDK3Pv5dG4Ch46dYBg1dwquj6rgqlNIPo4DKxHpWHPNuTGu5eoyOd1ZxItRW pMhaOU5nYQnEScpKoAVSeh5SRR6z9GadFYQH5wkFJCFvR6f1eK2hJlmq/1Ot0OwjgNwc 54Bwc8snIxNgp+Mr3gnxdgioN5ss0f9WAt1p9pRL2iYuYCtIRy/yUehVlg8OoAUXJKmb BKcm/oKs4bQi2OPlWAnRFJRepPQhXmomWg2dLGF9MuRO5obHSSn/aSOXW0IzsZcEqyxl dusg== 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=R+jNFjWd4DZWQan+LGClDCexVphmj7EPXU+zeNFwGD8=; b=r75CuYaCpS0w81nuzIgqx9L8ZgzdizodZ9Aih8vhIm4CVqJJ9ZtdbnnuFd9Ap5UXp5 9VvCt5e7HHS1ST2Q7edj0FiDmyTR3nMZyhyqaNejighQTig8cNsEA/5X5U7A/6ySgD9r NN9Khwl++u8sUQTlbdj7wn3k/ugnlt/eW6ZL9dDr0A2YKaxrdKr26lxXnib8rgFNZ7s5 c7nFx6BdfyTbyo/zzCcORxLOfmRunNjpPHDJcyRsL5IoQcAcIdtvNAzl/qy1pgDQP3VV Qbo+NP1nn5fG3mXspxJz2YkNYwl6mBWPaDj0cKVCKG3UfN0/kMDXdh4p2G3cxoezjeXh o50g== X-Gm-Message-State: AKGB3mLlF7NG57RPw7I5BgLWK6aCHHt8HM/fTKS4LMXsIobY2iQtuYUv Gv4HpeRdFc/HzMI33YDz+x7E0g== X-Google-Smtp-Source: ACJfBot3GFz/yvj/DFE1En9G7hRd4CVoPp9cfYyMi2OqE4Ik3AKU/1omxEBAGkwlf/FnsSiL9Y01Pg== X-Received: by 10.36.17.15 with SMTP id 15mr1276753itf.53.1513135777512; Tue, 12 Dec 2017 19:29:37 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 72sm3587000itg.0.2017.12.12.19.29.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 19:29:36 -0800 (PST) In-Reply-To: <83tvybvfx9.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Nov 2017 12:02:10 +0200") 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:141017 Archived-At: tags 29122 wontfix close 29122 quit Eli Zaretskii writes: >> From: Yegor Timoshenko >> Date: Fri, 3 Nov 2017 09:22:59 +0000 >> >> The use case here is when programs print usage information. >> >> Usage: ./a.out command [arguments...] >> Usage: /home/user/path/to/a.out command [arguments...] >> >> The former reads better and is generally expected from shells. > > You will get the same problem when a.out is found by searching PATH. > And on Windows, your program will almost always get argv[0] in > absolute form. So you need to take care of that anyway, or else your > program will sometimes produce that less readable output. Therefore closing as wontfix.