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 13:47:47 +0200 Message-ID: <86o70ogluk.fsf@gnu.org> References: <877c7cbxb6.fsf@hades.mail-host-address-is-not-set> <86ttaggu1b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13803"; 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 12:48:37 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 1tTgAO-0003Qu-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 12:48:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTg9r-0005gR-Sd; Fri, 03 Jan 2025 06:48:04 -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 1tTg9q-0005fo-OX for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48:02 -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 1tTg9q-0000kB-Ft for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48: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=Hm7mOG/L4qs0DeDZuJvFD5gRkViyp2JsdEv8l6qyHXw=; b=Vp+uZE673HNgDU1+l3JXUiW2zQxJGSg665GkmsmblMTHAnn+5p0P6OtkAroBSJbp6JBJCqIkn5hwav79YUe565JAOad+ojFJvq4wEWe+u3COi+we6KiItGM3VWyhaIs8JLRVNbmpbcpjq378LkjWRNKiAQ8+1YV45wIsnXBpBXoMMtxCMk68KhwJhd95Qy9Sq7TIj9cDttcH66LE6yaIZzVB/6Rg6xapxiqjd/O0AxMqT6ZwJwqMxd9ayJN7x2baeH5xhhEO2FVDlv1kNWGNfaRIvFxS+4lzxbQsrYD2VNAKUBj+5qpUkcCLkg9ItMkYIJbHmTXRHbBsY8gAYC0guw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTg9q-0002bi-7f for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48: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 11:48: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.173590487810002 (code B ref 75308); Fri, 03 Jan 2025 11:48:02 +0000 Original-Received: (at 75308) by debbugs.gnu.org; 3 Jan 2025 11:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:49826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTg9l-0002bF-Ou for submit@debbugs.gnu.org; Fri, 03 Jan 2025 06:47:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47464) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTg9j-0002b3-UI for 75308@debbugs.gnu.org; Fri, 03 Jan 2025 06:47:56 -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 1tTg9e-0000if-Cu; Fri, 03 Jan 2025 06:47:50 -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=Hm7mOG/L4qs0DeDZuJvFD5gRkViyp2JsdEv8l6qyHXw=; b=LqTPgcoh6iI2 XdgS60VDrj7GO6Qn6vamQtZlAbrjX29sTpBR4vIr7qnzN7XnOMS7NaxThw4dPqPw1yegKD+S0f1JA /D3eNnur3R7CT6tCCTWpdhhwInxTiZEFnOBHffTyrOVl0ryYICsqoetxcm/db7zN48sq9xW9Yzxpb nR8QNo1CcZzy0VF4bdUw0zAPqPQOWo3WsX0+rjcLcSuSXSE6sKCKIEO7BF5hB8CmZuWIMjnLbBE6m 7sENtAFLLDlTMO65uYxrlxIBJmvu523SMoQeiAZxmsxJ9CKjh0HMmyIe5XfGXJ+FyS7GygxjbPI/O LzXg65nPMc+/i9CIvOf3FQ==; In-Reply-To: (message from Stefan Kangas on Fri, 3 Jan 2025 03:26:42 -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:298272 Archived-At: > 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.