From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ted Phelps Newsgroups: gmane.emacs.bugs Subject: bug#75308: 30.0.93; man.el assume shell is bash Date: Sat, 4 Jan 2025 18:12:02 +1100 Message-ID: <12d19908-d1ee-4a7c-8853-119c1f3909dc@gnusto.com> References: <877c7cbxb6.fsf@hades.mail-host-address-is-not-set> <86ttaggu1b.fsf@gnu.org> <86o70ogluk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: michael.albinus@gmx.de, 75308@debbugs.gnu.org To: Eli Zaretskii , Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 12:20:23 2025 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 1tU2Cc-0005RL-Vi for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 12:20:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU2CL-00069Z-Fp; Sat, 04 Jan 2025 06:20:05 -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 1tU2CJ-00067p-9u for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:20:03 -0500 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 1tU2CJ-0008VT-01 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=IzUDTJy/d50iiBAV1wwtrGU8xTjzQZevXQo1BhF3eGc=; b=iaD23d1fhdpezuXNVw94D/mNXIJwuBsM1b8A0FVpw0wkg72Q8+38HKJNy9vgqfrtERyrmfn43U+M4VCOgKLAuCNH+qJ7Xc2ocgzA1e8TKnr/Qkql6xVU+rFWSxqyyA4ATCHAAePR0I23pbsLEUVBC1WhqW98tod9V8aUYamJQWQO3yM549sCr3zQ44gjE7479rGoMr56ZT2kxwCQg1g8ttTeZysjCxyigKvBVHqRhDsY/CeGQBI2czZYw/+z9vFJKIe7bnVidJymSk4/RrZszv4g+dUCsVvMzGvjtz/LzRpqdEe8B1jKyG/MIKDK5kSnzWmCWOX6EF2fk7QRl44XDg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU2CI-0001va-Ji for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ted Phelps Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 11:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75308 X-GNU-PR-Package: emacs Original-Received: via spool by 75308-submit@debbugs.gnu.org id=B75308.17359895747346 (code B ref 75308); Sat, 04 Jan 2025 11:20:02 +0000 Original-Received: (at 75308) by debbugs.gnu.org; 4 Jan 2025 11:19:34 +0000 Original-Received: from localhost ([127.0.0.1]:53550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU2Bp-0001uH-Rq for submit@debbugs.gnu.org; Sat, 04 Jan 2025 06:19:34 -0500 Original-Received: from mushka.gnusto.com ([178.128.254.86]:38406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTyKW-0007Mj-PD for 75308@debbugs.gnu.org; Sat, 04 Jan 2025 02:12:18 -0500 Original-Received: from [IPV6:2403:5804:6b:2:b4de:70f:5e92:7184] (2403-5804-6b-2-b4de-70f-5e92-7184.ip6.aussiebb.net [IPv6:2403:5804:6b:2:b4de:70f:5e92:7184]) by mushka.gnusto.com (Postfix) with ESMTPSA id EA5C12358A; Sat, 4 Jan 2025 07:12:09 +0000 (UTC) Content-Language: en-US In-Reply-To: <86o70ogluk.fsf@gnu.org> X-Mailman-Approved-At: Sat, 04 Jan 2025 06:19:33 -0500 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:298360 Archived-At: On 3/1/25 22:47, Eli Zaretskii wrote: >> From: Stefan Kangas >> Date: Fri, 3 Jan 2025 03:26:42 -0600 >> Cc: phelps@gnusto.com, 75308@debbugs.gnu.org, michael.albinus@gmx.de >> >> Eli Zaretskii writes: >> >>>> Cc: Michael Albinus >>>> From: Stefan Kangas >>>> Date: Fri, 3 Jan 2025 02:46:28 -0600 >>>> >>>> Ted Phelps writes: >>>> >>>>> Steps to reproduce: >>>>> * env SHELL=/bin/tcsh emacs -Q >>>>> * invoke M-x man >>>>> * request a man page (e.g. emacs) >>>>> >>>>> This will produce output like the following instead of the man page: >>>>> >>>>> Unmatched '''. >>>>> BEGIN: Command not found. >>>>> anonblank=0: Command not found. >>>>> }: Command not found. >>>>> Illegal variable name. >>>>> {: Command not found. >>>>> }: Command not found. >>>>> Illegal variable name. >>>>> Badly placed ()'s. >>>>> Unmatched '''. >>>>> >>>>> process exited abnormally with code 1 >>>>> >>>>> Replacing /bin/tcsh with /bin/bash in the above command produces the >>>>> expected man page. >>>>> >>>>> It looks like the behavior was broken by the following commit: >>>>> >>>>> commit 861ac933dd8aed1028edc4b9142400e3702874d5 >>>>> Author: Michael Albinus >>>>> Date: Wed Nov 1 16:54:31 2023 +0100 >>>>> >>>>> Many thanks, >>>>> -Ted >>>> >>>> Thanks for the bug report. For emacs-30, we should look into a some >>>> small workaround. I'm copying in Michae. >>> >>> I think we should force SHELL to be 'sh' (except on Windows) before >>> calling shell-command etc. >> >> I was first thinking /bin/bash but if we don't expect to need it, then >> sh is better. > > If we do need Bash and not just Bourne-compatible shell, we have a > serious bug there. I hope that is not the case. I don't think there's anything bash-specific required, just the ability to redirect stdout and stderr independently. I've confirmed that Debian's /bin/sh (dash) works just fine. -Ted