From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#71081: 30.0.50; shell-command-on-region outputs boilerplate text on Windows Date: Mon, 20 May 2024 18:34:52 +0000 Message-ID: <875xv8qqlv.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17964"; mail-complaints-to="usenet@ciao.gmane.io" To: 71081@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 20 20:34:17 2024 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 1s97pv-0004SM-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 May 2024 20:34:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s97pk-0000No-SR; Mon, 20 May 2024 14:34:04 -0400 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 1s97pj-0000NT-8c for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:34:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s97pd-0003KH-Lz for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s97pi-0005X6-0B for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2024 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71081 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.171623001421250 (code B ref -1); Mon, 20 May 2024 18:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2024 18:33:34 +0000 Original-Received: from localhost ([127.0.0.1]:44102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s97pD-0005We-Uy for submit@debbugs.gnu.org; Mon, 20 May 2024 14:33:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s97p6-0005WY-JN for submit@debbugs.gnu.org; Mon, 20 May 2024 14:33:29 -0400 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 1s97p1-0000F0-GE for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:33:19 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s97oy-0003Hz-Us for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 14:33:18 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A617E240028 for ; Mon, 20 May 2024 20:33:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716229994; bh=O/OHhLy/CLRNrYhCsNgZUhfJxO8NQ5/MbnkZvvmfhy4=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=Ee0hjejBd6UuuOcp6VwGaO/ZlIlYYw7U5tyCCpkohcgHFTNDYv3DAbNKRiulDGWR4 D59Nty1quF2i6ephw0aBloz+Re97KuJCXe40OsQoEr7HpeleBrTUoXD3q+B4pY4E+p 4h3H4bPYR8xGnjGIRybeROn3Gnrx86qoHasJitZKGfFePgbccagPXxIbUiA0fb7DvF mNlfQoQ0dYI1zvqHYQV7wFiIjJ+u+1UOSoY6HfYy+XdW/mGiG3MVNbHgIxH1McY4ZY uDVHJ/cAS2yuv6KVfI12TcFMczz6Grpni0tCtuEfDzw/ZKW2DVUChdWuxkUvuRYyWw qehjHpQ/hVArA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VjmQy0S9fz6txR for ; Mon, 20 May 2024 20:33:13 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285492 Archived-At: Hello, On Linux, if I put echo foo into scratch, select it, and run M-x shell-command-on-region sh, I get "foo" in echo area. However, on Windows, the result of M-x shell-command-on-region cmdproxy is Microsoft Windows [Version 10.0.19045.2251] (c) Microsoft Corporation. All rights reserved. c:\Users\johndoe\Org>echo foo foo I expected just "foo". Original bug report: https://list.orgmode.org/orgmode/CACjq+cy8G+EkMgSwr5KWNbN7jjLE3tzqKwbQiTy84ZvJsumMwQ@mail.gmail.com/ AFAIU, the culprit is how cmdproxy handles piped input: cmdproxy -c 'echo foo' works fine, outputting "foo". However (in powershell) echo 'echo foo' | cmdproxy yields the above verbose text - all in stdout. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at