From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#75308: 30.0.93; man.el assume shell is bash Date: Fri, 3 Jan 2025 03:26:42 -0600 Message-ID: References: <877c7cbxb6.fsf@hades.mail-host-address-is-not-set> <86ttaggu1b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75308@debbugs.gnu.org, phelps@gnusto.com, michael.albinus@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 10:27:22 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 1tTdxi-0001P5-4t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 10:27:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTdxT-0004Nv-A4; Fri, 03 Jan 2025 04:27:07 -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 1tTdxS-0004Nm-I2 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 04:27:06 -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 1tTdxO-0001ba-V6 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 04:27:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=D+IxXF03onJ/nYo6u+DxoDbWoq+w3jD5OTfNJqoWFWI=; b=OfzJMzWn+RSkzpGwBmYyAP9JsibhCJR03CJGoiQm1O6NeJz2SYMMRd7RePlNCUoqDb47rc1wdN3TsVKm1tWZVqVwb0wJj/nKF4ps2sfpp9BqbhuVZ64JVtv0+eU+gI91OwpmWykYmBbmu5vxfcv6mBBG6xugrhTmzUMLrjfrLlXnZahIoQLPFxYU2Uf34XJfnkRbW24dcSLFy1DsAx2Bh3SjvkXKp/nMH7DMg/3WjDcFgxgMcoZ8O/dj06sumAjKc+GdjLn1QRiUYCgyuc37Eob5IlTPoEEIO82xDEFR0iYes3qXOSELnsV/50Qp2rur4xigVf2M6AYOclC02yzakw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTdxO-0004g6-J2 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 09:27: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.173589641617966 (code B ref 75308); Fri, 03 Jan 2025 09:27:02 +0000 Original-Received: (at 75308) by debbugs.gnu.org; 3 Jan 2025 09:26:56 +0000 Original-Received: from localhost ([127.0.0.1]:49537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTdxD-0004fb-PU for submit@debbugs.gnu.org; Fri, 03 Jan 2025 04:26:56 -0500 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:51497) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTdxA-0004fL-TB for 75308@debbugs.gnu.org; Fri, 03 Jan 2025 04:26:49 -0500 Original-Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5d84179ef26so17987037a12.3 for <75308@debbugs.gnu.org>; Fri, 03 Jan 2025 01:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735896403; x=1736501203; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=D+IxXF03onJ/nYo6u+DxoDbWoq+w3jD5OTfNJqoWFWI=; b=FwKal3QAmi95+rjwBdpcHQ5QVg1epk8IZTwGkgN+iczBtCPv0l6i2DonDmj3EjQ42Y L/EFbEuG9sELqPObbTJcPVQ9C9iei8stJ0C3VeMcy24+Hcqny/fYNwVcRMceHiDBkabk ANZ7ngAo2AFUoHq66mJREY9dutY3KCoVRSa3soIO/74gg5uSyJAoFzag5kXIVXR5nKqe 0xlOztDKzKjgsxdRzD0xqmqqos6ObnBwqZ5bVrjd+nFwZhD/L9zdxulllDg/M+uVMNAp vdPP8EEb/gzoa2wdLVygmrSKE7x7YLyxH44gK+ONxkR4EfK5hj9xd2kaTebeQ+sQ6nF6 /sJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735896403; x=1736501203; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D+IxXF03onJ/nYo6u+DxoDbWoq+w3jD5OTfNJqoWFWI=; b=DK1EfiDmCSVFx/flw9Ut0TGh4kgnAZhcpgD4M8GLjuB8ku7tAjOrfrHtf1qif2Doqe +3fCNcrJSNzaqnpoo2QANHVUpsX27TQsXhSQa0BEqmrmi8WN0/7LP4MIvNvKyPEw7S0g sfuEXsJqCIhZlIIlW3SVSKVC1ZDi/Jn17kN5ymj8d7jJitqjksdg+Wy1T2hjJLPb+7z/ bzj4olSUOr/GIoGSqyIe8SiVzhFrZgztRhimH5daInV1bABa8JHMpBO1C8SARfxuD3Nz FHa0nwWeI8+aD+EYwniZHcfD7C+H7uJH+NccySQMUtF8VM7S6AOReyH7IpZGuQqsJiCO VwYg== X-Forwarded-Encrypted: i=1; AJvYcCVSlaVvnf1Q40pl8mzpwYoIMvQQ3FnqNwy0/3Ke9/xZTdqHZsUIWAg1pZWeYk9BySdgmhYFqg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyasjETI1kzsye4NNRLKMSGMHgIcxTrfiStSClua/wg65f/J58E MGuBS4HiNDqZLdR/E+reCfGRoxDAe1JelZsXBvF9lO8HR0b/gt3Wh79VAq0XNGB1OUgEr/xNeyI OC5daE03f5oJO9iXUhgHgFYFuUDNRf7Yh0a0= X-Gm-Gg: ASbGncuSREFjc/LjCEGiAxZCm1uJTozfzeoi1XwuxNXBO3e0qqbhFlOX2oQXPTeF+rl PSGFhMOW1WzCPig8cP51+WPUp1D4mn36EDpbejpQm X-Google-Smtp-Source: AGHT+IGYPTxcJW6wvV5EKWS1f4qpZeVuFRjYvVoVTxpX9fBOD+RfMhZPPjXYECtNhYjXLMQSawm9ffp30912V3P3Kf4= X-Received: by 2002:a50:cb83:0:b0:5d9:a55:42ef with SMTP id 4fb4d7f45d1cf-5d90a55431bmr3297722a12.17.1735896402308; Fri, 03 Jan 2025 01:26:42 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 3 Jan 2025 03:26:42 -0600 In-Reply-To: <86ttaggu1b.fsf@gnu.org> 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:298268 Archived-At: 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.