From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler 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 13:44:27 +0200 Message-ID: <2d81bff4-21fc-ce96-f1f1-f0bbf60b233e@daniel-mendler.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40891"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, 48579@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 22 13:45:11 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 1lkQ47-000AP8-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 13:45:11 +0200 Original-Received: from localhost ([::1]:60232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkQ46-00037i-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 07:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkQ3x-00037a-U6 for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 07:45:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkQ3x-00082P-LB for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 07:45:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkQ3x-0004Cw-Jl for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 07:45:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 May 2021 11:45:01 +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.162168387716126 (code B ref 48579); Sat, 22 May 2021 11:45:01 +0000 Original-Received: (at 48579) by debbugs.gnu.org; 22 May 2021 11:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:38402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkQ3Z-0004C2-23 for submit@debbugs.gnu.org; Sat, 22 May 2021 07:44:37 -0400 Original-Received: from server.qxqx.de ([178.63.65.180]:39945 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkQ3W-0004Bm-R1 for 48579@debbugs.gnu.org; Sat, 22 May 2021 07:44:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hDQBwnnyt5H17hza3mnRVhghCpXeOncUcenrgHhOZ/w=; b=mHDVrBwdRgeBKYFqYQ/YsLk9Co TePtpo8SIgYhzPal2t+npWpXIfRIP6B4Y+4LQfdU/knZMJvT4MseRmS4irDoJ0EN9FAFqTrgYjKVu s4jed1xeldcWT1jzJJNCeYJafvuATFZ9eHdSwnSkcJb1g6vT7B/KJYsnJnMFlUnEZvNw=; Content-Language: en-US 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:207031 Archived-At: > Bottom line: I don't see any Emacs bug here. Of course there is an Emacs bug here. I am using `call-process` to start Emacs. On Mac the home directory is taken on other Unixes the current directory of the parent process is taken. Both GNU/Linux and macOS are Unixes, it is expected that Emacs behaves in the same way on both platforms with regards to handling the current directory. When Emacs is started via the command line or via forking from another process, Emacs should inherit the default directory from the parent process. If Emacs is started via some special finder or desktop application, the default directory of that finder application is taken. This is all predictable and expected. Daniel