From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#48579: 28.0.50; Spawning an emacs process using call-process results in inconsistent, behavior between GNU/Linux and macOS Date: Sat, 22 May 2021 14:04:58 +0100 Message-ID: References: <2d81bff4-21fc-ce96-f1f1-f0bbf60b233e@daniel-mendler.de> <837djrklhx.fsf@gnu.org> <831r9zkkaq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15190"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48579@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 22 15:06:12 2021 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 1lkRKV-0003l7-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 15:06:11 +0200 Original-Received: from localhost ([::1]:41948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkRKU-0007Wk-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 09:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkRKM-0007WZ-PR for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkRKM-0002kI-I4 for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkRKM-0008VQ-DD for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 May 2021 13:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48579 X-GNU-PR-Package: emacs Original-Received: via spool by 48579-submit@debbugs.gnu.org id=B48579.162168870932459 (code B ref 48579); Sat, 22 May 2021 13:06:02 +0000 Original-Received: (at 48579) by debbugs.gnu.org; 22 May 2021 13:05:09 +0000 Original-Received: from localhost ([127.0.0.1]:38521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRJV-0008RS-AN for submit@debbugs.gnu.org; Sat, 22 May 2021 09:05:09 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:35985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRJT-0008Pp-GB for 48579@debbugs.gnu.org; Sat, 22 May 2021 09:05:08 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id CF3D16008B; Sat, 22 May 2021 13:05:01 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1621688701; bh=TZvZui5fQ3AX+t9ntHbhS1QdlBjTWrxWr7osuYFwups=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YGhumzQw/EfDoeXK6heca6QHvko34Icq0JisFmB8ZJUGlTkTkesF/Tc5tdBkRlVIM zBguFVbYDrgwDPQfKKp+Ero6GFHVLeUwXIiRdIIN7UOX2rhxVzOzbLyjlKWUMji43C voZW6fragFoXHaievWzhF/4BVJIM9GOvN/m9P+nLQZo+3paKH0P5noHsurUtDAGP7n gy4APbEdnsA+s0jfHKn4G7IOCEFdXXxFY6CgL1D/JrDhupHHrsgMEEkfXke20fhGBH UeCsomLzKeB49u8McrztVy2S98QvPKltbBQTgV+GV0R49TRCpOIVmeyiczHugZT9Rf QBdOu1mN2S2Kg== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1lkRJK-0007pc-6G; Sat, 22 May 2021 14:04:58 +0100 Mail-Followup-To: Alan Third , Daniel Mendler , Eli Zaretskii , 48579@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:207049 Archived-At: On Sat, May 22, 2021 at 02:54:26PM +0200, Daniel Mendler wrote: > But this discussion here seems to be a bit off-track. My point here is > that the current working directory determination on MacOS uses a > heuristic, which is not correct. It incorrectly determines that Emacs > has been launched from the finder or some other Mac GUI application and > therefore changes the directory to the home directory. If Emacs is > indeed started from the GUI, this makes all sense. But this is not the > case here. The TTY heuristic, that Alan described, is insufficient. I can't find any other way, and we had multiple complaints when the behaviour was broken whereas this is the first complaint in the other direction that I've seen. If you find an alternative, please let us know. -- Alan Third