From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#71235: Failing test on macOS: tramp-test17-dired-with-wildcards Date: Sun, 02 Jun 2024 16:03:20 +0200 Message-ID: References: <87ed9m8jp4.fsf@gmx.de> <87zfs74hxb.fsf@gmx.de> <874jabvdkn.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22070"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71235@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Michael Albinus To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 02 16:05:12 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 1sDlpg-0005Xt-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jun 2024 16:05:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDlpR-0008J1-00; Sun, 02 Jun 2024 10:04:57 -0400 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 1sDlpL-0008IX-GQ for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 10:04:51 -0400 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 1sDlpK-0003AF-I2 for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 10:04:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDlpW-0005Y4-Gt for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jun 2024 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71235 X-GNU-PR-Package: emacs Original-Received: via spool by 71235-submit@debbugs.gnu.org id=B71235.171733708321258 (code B ref 71235); Sun, 02 Jun 2024 14:05:02 +0000 Original-Received: (at 71235) by debbugs.gnu.org; 2 Jun 2024 14:04:43 +0000 Original-Received: from localhost ([127.0.0.1]:60089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDlpC-0005Wj-Ns for submit@debbugs.gnu.org; Sun, 02 Jun 2024 10:04:43 -0400 Original-Received: from mail-ej1-f41.google.com ([209.85.218.41]:57492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDlpA-0005WJ-Cw for 71235@debbugs.gnu.org; Sun, 02 Jun 2024 10:04:41 -0400 Original-Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a69024f2433so24467366b.2 for <71235@debbugs.gnu.org>; Sun, 02 Jun 2024 07:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717337002; x=1717941802; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=wRrkgaA0wZNDfaBnX7V3ulZqoIx+ZqlQFzRsMDtikHs=; b=jqptfJXAwQEIbOfyqERNtjQLjxs2WB0cHCfcpsAbOiDIMC/SpUSKEcNbxfugkfU1Lg olbWa8M6aFzvDvwgPpB0Cbt5J3RnCgxcWGH26Hs30wYPFTn8Z7G8fAJEXwrNdwUXGosL kCOD6ZLx5DzLRS4YvV71bbJA5vGVdxAEFeog6c38rTCIjU+OqY/2rNmLrZy8OkckihhA 3XASEGdce/nWOOo+BM3Wz2/IQvV3BnlZ4+DIRyGTCyRR+fqS77Roj+VdazH54IBYlOFP yc6pXoyTCMSRiSUN/hyv/WcdYbp999OTRrQbJG8NZtindthl58+Q695uEbUs4AVfIalE 3BUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717337002; x=1717941802; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wRrkgaA0wZNDfaBnX7V3ulZqoIx+ZqlQFzRsMDtikHs=; b=hgT6vgHxbGrQaY2P8LcQWw+fkXQcfz2w3uj704wFfvUJ4l1hoTP8Jin70lNaQXmoYd obot7qEXMA+3KS2zXLzvYMrxWxj2QL/XZu7z2QWgHuNTTUnQOM+d1HgG3oM3ZzxtzKzZ wCBhwmoA6y0IBgHc3PBxayPaP5hwxYpyKjgevOY0vXgZnLqm8ehBEzze/0y3QNVEREXv 7YqZA/rgvinYZUih+s1BP29OjOYca7lQl7IgbTfMJIngCma8TSJFkcwM2K848X4yTGcn 3heC9tJWxkxCMiIUMdC2ofxDkSS/Pxe/V3Po9rM2s7ZXfkTgUn6jXYn9eXeJapFjIfUk vqEA== X-Forwarded-Encrypted: i=1; AJvYcCXBoAV9Xj4sng8m3a7kr53633XqHCv6iS9cHQpNwXVwimZPRkg5p3u2vMmSLKDof3f4ffo1hQLrvAVKUEuqGxWPIkQThoY= X-Gm-Message-State: AOJu0YxUWTpD1PtZg9p060eGkslHvQEWcodBblP2uJ4tAiPVeYPbny0N u5WkFNf9eTiqiO4UvdOqtaZSQDKeCYhsesRDus9uvTTMoJpTtc2P X-Google-Smtp-Source: AGHT+IHAtsYVeesFOOQY0QUW55WPCYY67USCjtQO5fCDgcVHhSB54p/JURlpKMqAciYy3LyKtM+VNg== X-Received: by 2002:a17:907:86a6:b0:a68:be21:8dca with SMTP id a640c23a62f3a-a68be218e99mr333492166b.10.1717337001891; Sun, 02 Jun 2024 07:03:21 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ad9f.dip0.t-ipconnect.de. [79.227.173.159]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a69089e774csm22810066b.8.2024.06.02.07.03.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 07:03:21 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Sun, 2 Jun 2024 11:04:36 +0000") 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:286393 Archived-At: Stefan Kangas writes: > Michael Albinus writes: > >>> (executable-find "gls") >>> => "/opt/homebrew/bin/gls" >> >> Hmm. Should we add "/opt/homebrew/bin" to the default >> tramp-remote-path? It looks very special, even on macOS. >> >> OTOH, we have directories like "/local/freeware/bin", "/local/gnu/bin", >> "/usr/freeware/bin", "/usr/pkg/bin", "/usr/contrib/bin", "/opt/bin", >> "/opt/sbin" and "/opt/local/bin" there, which are also special. > > AFAIK, this is the default location where Homebrew (https://brew.sh/) > puts binaries, at least on new installations. (The Homebrew directory > structure has changed slightly over the years, but I don't know if this > is one of them since I only noticed it those changes passing.) > > I think it might make sense to add it to `tramp-remote-path`, but I'm > not familiar enough with Tramp to understand all the implications of > doing so. I'm copying in Mattias and Gerd, who I believe are using > macOS, in case they have anything to add. Homebrew uses different directories depending on if it's on a mac with x64 or arm64. I have both, and find the easiest thing to do is to use the brew shellenv command in my .zshenv to set up things. (I have a common dotfles setup for my machines.) /Users/gerd % brew shellenv export HOMEBREW_PREFIX="/opt/homebrew"; export HOMEBREW_CELLAR="/opt/homebrew/Cellar"; export HOMEBREW_REPOSITORY="/opt/homebrew"; export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"; export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:"; export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}"; Then, I'm using exec-path-from-shell in my init.el to get the shell environment into Emacs, even when started from Emacs.app. Starting an .app bundle doesn't involve the shell, so one has to do something. Works like a charm with everything I use, including things like Magit over tramp, and so on. (If you are using zsh from Homebrew and not the one from macOS, you might want to call connection-local-set-profile-variables or something to get the right zsh.)