From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#55620: 29.0.50; Eshell doesn't reset `eshell-in-pipeline-p' in subcommands Date: Tue, 24 May 2022 19:20:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40426"; mail-complaints-to="usenet@ciao.gmane.io" To: 55620@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 04:22:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntgfG-000APS-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 04:22:22 +0200 Original-Received: from localhost ([::1]:59988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntgfF-0003dn-LV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 May 2022 22:22:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgez-0003ct-Uj for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:22:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntgew-0007pJ-Pt for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:22:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntgew-0003Yh-J1 for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2022 02:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55620 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165344526513594 (code B ref -1); Wed, 25 May 2022 02:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2022 02:21:05 +0000 Original-Received: from localhost ([127.0.0.1]:53950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntge1-0003XC-CO for submit@debbugs.gnu.org; Tue, 24 May 2022 22:21:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntge0-0003X4-2A for submit@debbugs.gnu.org; Tue, 24 May 2022 22:21:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntgdz-0003ED-K7 for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:21:03 -0400 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:45729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntgdy-0007l7-0p for bug-gnu-emacs@gnu.org; Tue, 24 May 2022 22:21:03 -0400 Original-Received: by mail-pl1-x62a.google.com with SMTP id q18so17382095pln.12 for ; Tue, 24 May 2022 19:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:message-id:date:mime-version:content-language :content-transfer-encoding; bh=hig71wbuHBqOYY3ITyLLXct3+skWjJfmFlLYx6ir5VI=; b=mzYoby5W60suDVZKOCDpT0GW8rRMajKQPGHwDSaj7ikRyPJ+XWMQaJLcWxBjiKsZi3 HoyCgAmMeYY8uNeU4MRxGpiMvXNpbO8SmsoVnESAc965Circ/4UkIB6mCUaAsC9P6j/Q 9hroYcUEoFPZOmMaXCVSR82iCKsYIPZY6BWGPqM4zopB6jQtpviEjHkPHXsWQOe8wLzt LBiw4/B6/U9AKCSPxtH7WZd8wu83IJBsvulgn5ecU/qvUGQZ0RbPqzE7mlgAwLnUabAh Jlvnz0JinEza0Jn6HBPawguV1SqP6rhXuVXrW7mbcKFNsv7keiLDZrHGiZa7lptT2NNh M2YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:message-id:date:mime-version :content-language:content-transfer-encoding; bh=hig71wbuHBqOYY3ITyLLXct3+skWjJfmFlLYx6ir5VI=; b=7QS9AC/DypXsdrVnjHpoK029vGv9q6sZkEikQ28ke4XZU/WmpIhLvMhHxhwsLe8dXe WikYaVoHs1vpzOgpd0hjR1O9it8cwJH9WBht+C9zKUGw8DHZYBBL/keuZXBH2Z8KyTWV +FWVXjIwZUnotGG4tIrUhutdvrZBl9P90f7akrYIUD/BneSQY1M+C1vGrGDilf9oO9l/ 9MXnJDdpLofp9QZpNvcgNU29PZ24HK6jViWCyxv4vGVJGA6YMaE0xoCpgHi5GOwP/0LC 4oEip4IpaUztubI3TfVJER3YIKRjULvANboLOkmjCZZ7DpZ9XQTHjNJlHyXgGkEITWK6 3XtQ== X-Gm-Message-State: AOAM533uofFK4YujfS6BrEP1ffF4zknsJQXw3Ymk8Ce8th70zEGoy3R5 4UnkysCVe/3+U9yRz39PDajsFcxea34= X-Google-Smtp-Source: ABdhPJwTE9Y6jzt10UtQ8owSYl5IqB2F4fICgPOaHuNWXlJNHQc++QFzj66gueqKMmbmtS9Ek8X7EQ== X-Received: by 2002:a17:902:6b03:b0:161:51d6:61b with SMTP id o3-20020a1709026b0300b0016151d6061bmr6227736plk.23.1653445260130; Tue, 24 May 2022 19:21:00 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id a8-20020a656408000000b003db141a5f26sm7258565pgv.1.2022.05.24.19.20.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 May 2022 19:20:59 -0700 (PDT) X-Mozilla-News-Host: news://news.gmane.org:119 Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233036 Archived-At: From `emacs -Q -f eshell': ~ $ echo $eshell-in-pipeline-p ;; no output ~ $ echo ${echo $eshell-in-pipeline-p} ;; no output ~ $ echo ${echo $eshell-in-pipeline-p} | cat first (Note: in the first two cases, `eshell-in-pipeline-p' is nil, so there's no output.) The last case is surprising: it's true that the inner `echo' invocation is in a pipeline, but the pipeline is a level above it (`first' means that when `eshell-in-pipeline-p' was evaluated, it was the first command in a pipeline). Since the inner `echo' is effectively in a subshell, it makes more sense for the value of `eshell-in-pipeline-p' to be nil for the last case. While this is a seemingly-obscure issue, there is one practical effect that might bite users: currently, the Eshell implementation of `cat' only works when *not* in a pipeline. Usually, it'll just fall back to using the real system `cat' program if the Eshell version doesn't work, but on systems without `cat' (e.g. MS Windows), you get the following error: ~ $ echo ${cat file.txt} | echo Eshell’s ‘cat’ does not work in pipelines Patch forthcoming momentarily; just getting a bug number...