From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Zimmermann Newsgroups: gmane.emacs.devel Subject: Checking if this is a Eshell bug in emacs 29: Should eshell redirect all output in esh script to stdout Date: Wed, 23 Nov 2022 13:56:20 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d98ec05ee27da24" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6610"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 23 20:56:55 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oxvra-0001aO-Ix for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Nov 2022 20:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxvqZ-0004hx-7j; Wed, 23 Nov 2022 14:55:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxuvb-0002xY-Hg for emacs-devel@gnu.org; Wed, 23 Nov 2022 13:56:59 -0500 Original-Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxuvZ-0006m8-Lb for emacs-devel@gnu.org; Wed, 23 Nov 2022 13:56:59 -0500 Original-Received: by mail-vs1-xe32.google.com with SMTP id q127so18361058vsa.7 for ; Wed, 23 Nov 2022 10:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=vmf5zOwm6XpUQzCKh8KmBlp0Gs3BP8Y+AJTMYGb62HY=; b=NaM2nRV3QQy73hjC90CMsuSGcjusPLCcqP5PDOTuZmeV+VsH1bc79yqiPC360j2lLo 9Fas/4Z212HgtJyCxOZmL0GUUCOCM7Xtdp9k1BTD2XF7D7K2btYkGCbfi0j9FA59iXXi ecCESV/EATYvWfTe90TZLyN4FTcHPktSv1vYHASG3UMOQDKo+adDnKgnSeYDlNnpgwUg bEblbncXUkMyJ6K4ceH2QvPdnwWn7yu3sdZQCxPgPWXbFFJpvDZIPoBqvH/BZ23VQRyJ hRrzFWfg799uJ0Y2ZcmQMCWTO66TU1cvnFoYdvaaNYOpnd9eTSW4I1yuN/eF1CnawmDu g7SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vmf5zOwm6XpUQzCKh8KmBlp0Gs3BP8Y+AJTMYGb62HY=; b=JkkxCZwZDy8LbT0bE67810zJpCBnyRQHek+vFedWcVrYgSzYIx2y8V7HaaCYwhNqyb qP5OyoiOR9ZhVyACP1oM0swgRYHTbIc8GwSBsT6tlyXsgZPg8D9qe1m2+nIK8btW2iTy 5xfEFqmTSSL6jjhuV1R0CjLYDPO0C5pbFqKJSdzIzkg/eCeDL4A2odtWwtZHegDp6kfz YSTKXvm0RLrn4a+BAR/R4t40TEv8LS/4TZaLvk8jsl9jysmMMqjimIeLnTZ6PrbFhUY4 oSv7rjLmyuIyD3qKmFAfgpilwijU0ImVG0SztWZRELoo77fw3ByPwx0Wyf26Ma8QIFFi XCcg== X-Gm-Message-State: ANoB5plzeUf3W1EupcJxOrdwvOtn0xMVAT8/BwuNS8eTJBdmSbhHXI69 gNHwr0mKOWUS9Gx6imea9qiYrzYGrn2tAt9rR8j8l8s/vTQ= X-Google-Smtp-Source: AA0mqf5Qhlo/M3rQvbehEbiI3leRlm1+1/pUfKCigJ1FDPDc6ilxdItSwemgT08Qq5EGU8+bb+QnezspNROKGemLmhk= X-Received: by 2002:a05:6102:2376:b0:397:ff19:72b8 with SMTP id o22-20020a056102237600b00397ff1972b8mr6212919vsa.4.1669229816157; Wed, 23 Nov 2022 10:56:56 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=milan.zimmermann@gmail.com; helo=mail-vs1-xe32.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 23 Nov 2022 14:55:49 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300407 Archived-At: --0000000000003d98ec05ee27da24 Content-Type: text/plain; charset="UTF-8" Hi, I would like to check here before reporting an Eshell bug. A script named 'redirect-echo.esh' with two echo commands. Emacs 29: Sourcing it and redirecting output to a file, results in the first echo string ('hello') showing in eshell, only the second ('there')(presumably because it is last) showing in the output file: tmp $ cat redirect-echo.esh echo hello echo there tmp $ source redirect-echo.esh > redirect-echo.out hello tmp $ cat redirect-echo.out theretmp $ As a note, the same behavior if elisp "print" is used instead of echo. Also the same behavior if I redirect output to an Emacs buffer instead of the file. I believe this is a bug but I am not sure about Eshell's intended features, so I wanted to check first. Thanks, Milan --0000000000003d98ec05ee27da24 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I would like to check here before reporting an = Eshell bug.

A script named 'redirect-echo.esh' with two echo= commands.

Emacs 29: Sourcing it and redirecting output to a file, r= esults in the first echo string ('hello') showing in eshell, only t= he second ('there')(presumably because it is last) showing in the o= utput file:

tmp $ cat redirect-echo.esh
echo hello
echo there<= br>tmp $ source redirect-echo.esh > redirect-echo.out
hello
tmp $ = cat redirect-echo.out
theretmp $

As a note, the same behavior if = elisp "print" is used instead of=C2=A0echo. Also the=C2=A0same be= havior if I redirect output to an=C2=A0Emacs buffer instead of=C2=A0the fil= e.

=C2=A0I believe this is a bug but I am not sure about Eshell'= ;s intended features, so I wanted to check first.=C2=A0

<= div>Thanks,

Milan
--0000000000003d98ec05ee27da24--