From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75308: 30.0.93; man.el assume shell is bash Date: Fri, 03 Jan 2025 10:50:56 +0200 Message-ID: <86ttaggu1b.fsf@gnu.org> References: <877c7cbxb6.fsf@hades.mail-host-address-is-not-set> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75308@debbugs.gnu.org, phelps@gnusto.com, michael.albinus@gmx.de To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 09:52:24 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 1tTdPr-0008tO-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 09:52:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTdPe-0005jP-Li; Fri, 03 Jan 2025 03:52:12 -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 1tTdPW-0005iL-QB for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:52:04 -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 1tTdPW-0000qm-Hm for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=0SRYKWZ3JKivrRJXynRr31aVqcGfOskznf9Zytl0P+M=; b=SKEIfljF9OFzQehtZ2z0g3Xd8uOoUZ4PAQzbOyovUMYKffCFMySizWiYs4/PqqlfFC/O+5gh6Q5OHOVCADIQMQMOoqKmwuyUcnnPsg29ZBPiaEoRWSHj++vO6dh8XAsxJVz8AH0YroNh+CuaBuiTL4zjgZBoe0NheHBLP/TdBf+Cf2MkjF3hOp/5peyt1HIG/+zylQBGSe80Thbk4mQ5MyHhp3rpIYd5Ja50s6HRibiCyp/5Hhoc4Odltdo8rq1z9QKp36cUnZjdEvI9Y1XycG6bG7WsdWI7V4GMi8Qv52Cm084Egpz2670o8cQrJLoGEpLO9DW31vQ3W3SI2Y1OKw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTdPW-0002py-Ct for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 08:52: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.173589427010781 (code B ref 75308); Fri, 03 Jan 2025 08:52:02 +0000 Original-Received: (at 75308) by debbugs.gnu.org; 3 Jan 2025 08:51:10 +0000 Original-Received: from localhost ([127.0.0.1]:49479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTdOg-0002no-3j for submit@debbugs.gnu.org; Fri, 03 Jan 2025 03:51:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55444) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTdOc-0002nA-Vx for 75308@debbugs.gnu.org; Fri, 03 Jan 2025 03:51:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTdOX-00084b-3R; Fri, 03 Jan 2025 03:51:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0SRYKWZ3JKivrRJXynRr31aVqcGfOskznf9Zytl0P+M=; b=UKrrb56+yGHF AaYkv+H+Dfy5hS6G1CeXYv0znhsVoc/fODkMJlKRiAsXxZ7UoIf3yAdUknsVDUpN6oZJB++oir+85 kU2IvCe7dHFAv/e/qix/URWLFNP1KXV9iUE4OCdsY1nZAcen9eJRS9Y+U9wol9LXpGpvEvxZuFEE6 QT/LbcrbQkCCAiekcvf1pfm9GboAbO4F5xRxWQ9f2zMw7kRprj8GVX5IRrQLMD2Bbht3u83AHXWwx RuE/mr2V3Jnj+uiuGYKW+G9vGCPjsS8PyZZygqY9eLH9y1F/+RRZjrDnronevjKmqPYhKIijBx57q PD4UNdx9S1M3YDklp2v+3Q==; In-Reply-To: (message from Stefan Kangas on Fri, 3 Jan 2025 02:46:28 -0600) 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:298264 Archived-At: > 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.