From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74208: 31.0.50; minibuffer read-file-name-default mutates global value of default-directory incorrectly Date: Mon, 09 Dec 2024 09:17:20 +0100 Message-ID: <878qspuv73.fsf@gmx.de> References: <87jzcaus0j.fsf@gmx.de> <20241208.215657.808667871380904989.enometh@meer.net> <87ed2iulrd.fsf@gmx.de> <20241209.051240.1641477245108615749.enometh@meer.net> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29825"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74208-done@debbugs.gnu.org To: Madhu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 09:18:25 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 1tKYyG-0007dA-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 09:18:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKYxy-0004rm-4w; Mon, 09 Dec 2024 03:18:06 -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 1tKYxv-0004qz-VK for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 03:18: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 1tKYxv-00043T-Mw for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 03:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=omP0mrXkt/0wPPJPIcC7MmGVwvkTfliY6zaopGs5SrY=; b=IyTmNBQ5h+93RdSNIS6k0S+XEhXUyu0Gaqi0Of3R37xtFGYb2FxCrhgvX+sWJ9J3O5yn7MDsD2ArB0M5bZ9jX+bKx9ddGP8R/AA7QvVL/I/VZ9j1huYqTHYctXXGk8roDSrK931m+lVb/Nxe0LV6i+u0S0AeuxAvpYT26pevYs8DrhW/0kcouWNNxUF8G+mXvxAL8QM9Ty1bFe73rRVilGpfxiUu/2zj6idXEG4KzbSjpxrObqUtLAFcCy+XU5jxOYnPFnIgzEK9MUw8KU70zC9bRsVWAx85KwzTGag8TXxztA1IpJHeGMzoz4vsvVJWXvextb0ZVs25SMNgYddjTQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKYxu-0006kM-J8 for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 03:18:02 -0500 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2024 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74208 X-GNU-PR-Package: emacs Mail-Followup-To: 74208@debbugs.gnu.org, michael.albinus@gmx.de, enometh@meer.net Original-Received: via spool by 74208-done@debbugs.gnu.org id=D74208.173373226025894 (code D ref 74208); Mon, 09 Dec 2024 08:18:02 +0000 Original-Received: (at 74208-done) by debbugs.gnu.org; 9 Dec 2024 08:17:40 +0000 Original-Received: from localhost ([127.0.0.1]:52798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKYxX-0006jZ-Eh for submit@debbugs.gnu.org; Mon, 09 Dec 2024 03:17:39 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:50841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKYxT-0006jE-VV for 74208-done@debbugs.gnu.org; Mon, 09 Dec 2024 03:17:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1733732246; x=1734337046; i=michael.albinus@gmx.de; bh=omP0mrXkt/0wPPJPIcC7MmGVwvkTfliY6zaopGs5SrY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=WT4BUGlC4ElX8k9AGWqLN/Br6Af093goc6lAZHQad7HnyGStS7iZHyD+w/pexHMn RxcV0i9+a8i5H0pGen6oB0acO9NiTyR66edlsudBZYX0g6eN2rtHs9IkkXCoNOByt b9aTd05uo1W+ah46Pj8rvt59sP6uhJCFSvxpD3ooc7qYSy+SJS6MyNb0FxEi5qhkg AvrZ3EtnB9NRr2BHAhij/0NUOf4b4FdEX+jqEQhY0Ngp21leGoNFC7cpfaAZ8SRGm FZx45IFYNM6xrGGOWvRICIvJC07IZ53JDMdz4jTMR6FfDsNDIaNLQWW2tz1OdDJUX xRK8ocglS8UADMMe8A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MVNAr-1tAPpp0KwB-00IXUG; Mon, 09 Dec 2024 09:17:26 +0100 In-Reply-To: <20241209.051240.1641477245108615749.enometh@meer.net> (Madhu's message of "Mon, 09 Dec 2024 05:12:40 +0530 (IST)") X-Provags-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uk8SKDeHt3kRhheMM6bGPQ2d 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:296680 Archived-At: Version: 31.1 Madhu writes: Hi Madhu, > I meant the defaulting use in the call to get_current_directory in > callproc.c I see. But as said, it isn't a robust setting: --8<---------------cut here---------------start------------->8--- # env HOME=/foo emacs -Q --batch --eval '(let ((default-directory (expand-file-name "~"))) (shell-command "ls"))' Error: file-missing ("Setting current directory" "No such file or directory" "/foo") call-shell-region(1 1 "ls" nil #) shell-command-on-region(1 1 "ls" nil nil nil) shell-command("ls") (let ((default-directory (expand-file-name "~"))) (shell-command "ls")) eval((let ((default-directory (expand-file-name "~"))) (shell-command "ls")) t) command-line-1(("--eval" "(let ((default-directory (expand-file-name \"~\"))) (shell-command \"ls\"))")) command-line() normal-top-level() (Shell command failed with error) Setting current directory: No such file or directory, /foo --8<---------------cut here---------------end--------------->8--- > Speaking for myself: no. I'm a bit dissapointed that the setq doesn't > get fixed, but I think the main problem has been addressed. Thanks, so I'm closing the bug. Best regards, Michael.