From unknown Wed Jun 18 00:24:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48471 <48471@debbugs.gnu.org> To: bug#48471 <48471@debbugs.gnu.org> Subject: Status: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name Reply-To: bug#48471 <48471@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:35 +0000 retitle 48471 28.0.50; Incorrect handling of `project-ignores' on macOS (BS= D find?) if project root is a directory name reassign 48471 emacs submitter 48471 Philipp severity 48471 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 16:05:30 2021 Received: (at submit) by debbugs.gnu.org; 16 May 2021 20:05:30 +0000 Received: from localhost ([127.0.0.1]:51542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liN0z-0007U2-S2 for submit@debbugs.gnu.org; Sun, 16 May 2021 16:05:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:47866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liN0y-0007Tv-3z for submit@debbugs.gnu.org; Sun, 16 May 2021 16:05:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liN0x-00082d-UJ for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:05:27 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:40764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liN0v-00048N-TZ for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:05:27 -0400 Received: by mail-ej1-x62e.google.com with SMTP id n2so6084304ejy.7 for ; Sun, 16 May 2021 13:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=EHlCxTsziUlBXTm0iyRlp9gfcRez98FyJcrh+C+Mok0=; b=hzJGFl2V/i/pOP/0OWhPGB7vNQk2UlJT4Ib0kn8SguFOhUkQlTxeCMMmPIPwBj3WBl OXUUk44RzXoTX26PpBg79Sp4EH+eMxFOjtgMqXRxFUAuGNYg7OPJnSastACXCFHSBKLx W1JEJ7wOpjmYG21yvEY7Xa5/k1pzTWAaErP9cdblU9or+Jz1FIpP9yDc82hJTSNSEnh1 6gVwS9RkcIvpkCBpMS6KLmxA8Kqw7GTvpUufwHHfMNoGr0UXCafM73/lQDQuRbHtrmyI Nl1sdfA5CGI5zcr5/I3SP7iWL8xnbznhLEOV7V3xRZwHY2Dlar9MrzZd1qitCxQt1gKK pK0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=EHlCxTsziUlBXTm0iyRlp9gfcRez98FyJcrh+C+Mok0=; b=tKrqSxOzoBZLfNDCfWj6auUwVj1/ebSl/nWcP0A+ukA6ni0WmV3t/tOoni+Mtpkrjf o5AfIDg/1ETAQ9DRPePFcVBzy3qRy+KYR8GJfvPHIJ5IJ3Rn3hea4iApJise9ugtUwlA MGfMzZ+g2qePc2c8CzuJ+j8C98nzv/ybw9zVxOSQ9NMP2eRhooyb6FtyzAP/v2bCFr0T Fza6ntz/h3HUu05pSLA1Q2EAxW3x6u9v6DMiGd+ic34ZrkrVDfUZVmu5yC4D1tA2/aQb fd5JHaEKCuykPauJGJ+BwDbgQGrcsyT4vNfXLmWQa97Jt7zlygMtalGP/h0bo8vf2Lfu VBhQ== X-Gm-Message-State: AOAM532kkM+or8HUaU/m6RhdRLU2qCJya6qyVUJITJte6gAWA72WPl4J AfPtt4k6Jgn5oTEEjwX09AQSCz8VQ/NdaQ== X-Google-Smtp-Source: ABdhPJxEbfyzr+hWmoI5PqHgfpNLceKtAY9XUpejdDkkqe1iIjONtOZlfcwjM7cYVYFvzVVLGgE/sw== X-Received: by 2002:a17:906:538a:: with SMTP id g10mr32803225ejo.243.1621195522887; Sun, 16 May 2021 13:05:22 -0700 (PDT) Received: from Philipps-MBP.fritz.box ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id e22sm9790748edu.35.2021.05.16.13.05.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 13:05:22 -0700 (PDT) From: Philipp To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name Date: Sun, 16 May 2021 22:05:21 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=p.stephani2@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) The following happens at least on macOS with its BSD find. It does *not* happen with GNU find. Create an empty directory /tmp/foo and files bar and baz in that directory. Then, define a trivial project: (cl-defmethod project-roots ((_ (eql foo))) '("/tmp/foo/")) (cl-defmethod project-ignores ((_ (eql foo)) _) '("./bar")) The important point here is that the project root is a directory name, not a directory file name. Now, with macOS find: (project-files 'foo) => ("/tmp/foo//bar" "/tmp/foo//baz") Note how the `project-ignores' result has been ignored. The problem is that macOS find doesn't normalize the directory name in any way: /tmp/foo$ find /tmp/foo/ /tmp/foo/ /tmp/foo//baz /tmp/foo//bar /tmp/foo$ find /tmp/foo/ '(' -path /tmp/foo/bar -prune ')' -o -print /tmp/foo/ /tmp/foo//baz /tmp/foo//bar /tmp/foo$ find /tmp/foo/ '(' -path /tmp/foo//bar -prune ')' -o -print /tmp/foo/ /tmp/foo//baz XRef will generate a prune pattern like /tmp/foo/bar, and find will ignore it because it doesn't exactly match the filenames. To work around this, XRef should probably only pass directory file names to find, not directory names, at least on macOS. In GNU Emacs 28.0.50 (build 119, aarch64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E241)) of 2021-05-16 Repository revision: 0212fb180a118795b4de383cc712e7079c998cef Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.3.1 Configured using: 'configure --with-modules --without-xml2 --without-pop --with-mailutils --enable-gcc-warnings=warn-only --enable-checking=all --enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0'' Configured features: ACL GNUTLS JSON LCMS2 MODULES NOTIFY KQUEUE NS PDUMPER PNG THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc dired dired-loaddefs rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst skeleton derived edmacro kmacro pcase ffap thingatpt url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars mailcap rx gnutls puny dbus xml subr-x seq byte-opt gv bytecomp byte-compile cconv compile text-property-search comint ansi-color ring cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 70856 6582) (symbols 48 8362 1) (strings 32 24246 2104) (string-bytes 1 792999) (vectors 16 16049) (vector-slots 8 212521 6692) (floats 8 26 28) (intervals 56 220 0) (buffers 992 10)) From debbugs-submit-bounces@debbugs.gnu.org Sun May 16 20:23:53 2021 Received: (at 48471) by debbugs.gnu.org; 17 May 2021 00:23:53 +0000 Received: from localhost ([127.0.0.1]:51676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liR33-0005N8-39 for submit@debbugs.gnu.org; Sun, 16 May 2021 20:23:53 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:44770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liR31-0005Mt-9w for 48471@debbugs.gnu.org; Sun, 16 May 2021 20:23:51 -0400 Received: by mail-wm1-f49.google.com with SMTP id y184-20020a1ce1c10000b02901769b409001so1147130wmg.3 for <48471@debbugs.gnu.org>; Sun, 16 May 2021 17:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0a0nw+B7IFnA/xh8UWgFTj003ptC+aBuhFkCw4UoOV8=; b=vFoaI7ZbABnG8ZzYUN4FV58JXVlnaXK7EDzhN+6h4eVrB+IlVJiLlaHp915SFl3K5I ZcEed2web7FEoxK7Mi4oKuASso/6N/mDKAEHbtg+y2jdKG2bp5Xa7/qrmdYP0kJZ9Rjk ODzYvJhNOL4rDsgnzFWCJTouTf9/wp1mYW+R8plCUok173HfVxjyNmbJ/F6pyYLFV/cK Zvie79WTGlaxyaNORjIZc3Hxaz6Uyy4L6NgywCQqfHou3TUXEEUWNvvaxORqChseqxVN 6fZFBWtz9MRl6R22Q1cjh/OuTLS2UlCAhdYlGRw0CkD3m1IRS4yTyVNAJr0HfOkq5tvg qPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0a0nw+B7IFnA/xh8UWgFTj003ptC+aBuhFkCw4UoOV8=; b=uJ/0ldyJmVDXkbJEpPkzeCNaMQzXptCdHOp7FuIN8FWn9GODkro0EkrXwe/UZYeUeH F/HoyizGWz5vK2MdN8COPZUFwj/wTzCr/hLItlNY81Eu8bu5x7rhexM2Jcan1GkhjXLM q2up1UGfeZItfHspJlIu7s55TQMX4U33yDG3S4QCVAo5uaViqJ+QoY4T6xfbMgHaK3On sXZTOOzRcBoeGNys35CQFkgyu4yCvTNJSxL6GsZHwvaqjUx4W3zpDsXO/0Dt7QW7ItgI tzOnACbLIHZVxB0R6Yv3b8xcwJZsj+jH7r9bNsDrQVJiHjCT5fgXC5moRbNnFr0n4Ap9 Xr/g== X-Gm-Message-State: AOAM531a4VdbymtwkS6CwAsmn9WtQSCW9X9X7MKmJKALIbPy1zpvTdLY 2XjkMNxbl23sk7STztRl91gD8eieQn0= X-Google-Smtp-Source: ABdhPJxStbZh+8LFLuwOIRSrDPfRoWmNqJdqK0zU4s88Fi7Wz3SNOx8OcmCMwSYZbV3+gHdHtXBLow== X-Received: by 2002:a1c:bdc4:: with SMTP id n187mr18837214wmf.175.1621211025544; Sun, 16 May 2021 17:23:45 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id q27sm11970812wrz.79.2021.05.16.17.23.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 May 2021 17:23:45 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Philipp , 48471@debbugs.gnu.org References: From: Dmitry Gutov Message-ID: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> Date: Mon, 17 May 2021 03:23:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 48471 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi! On 16.05.2021 23:05, Philipp wrote: > To work around this, XRef should probably only pass directory file names > to find, not directory names, at least on macOS. Could you track down the piece of code that's misbehaving? Maybe with a little edebug-ing. I don't have any BSD find at hand, but (xref--find-ignores-arguments '("./bar") "/tmp/foo/") returns "\\( -path /tmp/foo/bar \\) -prune -o " here. Also, your return value of (project-files 'foo) seems to indicate that you're using the version of project.el that doesn't include the commit 665b4e7c4e093391a353506e7b2385f0902db70b. Please see if it fixed this problem as well. From debbugs-submit-bounces@debbugs.gnu.org Mon May 17 15:37:52 2021 Received: (at 48471) by debbugs.gnu.org; 17 May 2021 19:37:52 +0000 Received: from localhost ([127.0.0.1]:53838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lij3n-0001CQ-VQ for submit@debbugs.gnu.org; Mon, 17 May 2021 15:37:52 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lij3l-0001CC-Kk for 48471@debbugs.gnu.org; Mon, 17 May 2021 15:37:50 -0400 Received: by mail-wr1-f41.google.com with SMTP id z17so7624221wrq.7 for <48471@debbugs.gnu.org>; Mon, 17 May 2021 12:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hs8PLeVQ6ynkRkreGbnXA1VIRQtK8BofjHerVn7B+Eo=; b=rSQGClEp6Rb4HY7zzi83XoKFFeM2wt+oGC/Nxhm5AfVefDL6YNifqTKYG3DVMC+orW 3/HoKw2Z/iuSHd4wYWko1Yt+wYLcUL3mc7p+wzxpKa4UzIs8AQmhUx1e9A4MZNgkYiuQ TOO6Upmg1fMElUU3Evct/1wyXLZXLl0ciFGXE4Wpwm9He3DaDXLlaovcayfEB1shP/5h xcW13VPse53SpTsmnqNQABRyFvu3ayB7ZdKLfSfd7od2G4mWH00+VbDrSEdNm4wO3FAW GJxLNaliSSjAZEawTHD7MkXhFRG8W3bOprPSa2wSlKWZMXJqBjPeV23hOnfujZ/1skjC z9zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hs8PLeVQ6ynkRkreGbnXA1VIRQtK8BofjHerVn7B+Eo=; b=ijuvKrBU1LrYjP8bBGatTbQhf1zvHrW526dj/RBEa/qPz/ZO7QMXXYjg7jWC+mELkw 95DAAt07O3iPMY0SxbgH75zlfi7Pjo1VxbBn2ANrAEuAF14BRB0h6lVfnVUFjxnb3VtK ZiXwxLZsLZm3TW8nbjbQZlbk3CNP5Ht0Pp/vJPX1iraXRYO/4hXAaaIJ2OW8F7WQoCzV xa/2xVGbGxOkFuVU50IhoIc4DopwsrNaibVMn19OyGR8tGxTZULNTmBJSV9aHmQxH/UF R4l80Ltvvu2n5fazsa9VdpBPYFT58mPHQp3F61XvivQ/HYa/Py5+iENj4UIPe+tOip4P 6aeg== X-Gm-Message-State: AOAM532fGpQE3lCQQVFMaHK1hwAFu4gkK3HwnIu1sM3NzRnE6HGVfjI0 H+CEJasCtRppOD3h3uMKic0= X-Google-Smtp-Source: ABdhPJy4NfHvNdDhvl0OLgTdLezxPxGyl1l4Bh9BUl9r2MB9pW5UrArBoRzSLcGatspOhJnIqFy5GA== X-Received: by 2002:a5d:4574:: with SMTP id a20mr1546035wrc.188.1621280263765; Mon, 17 May 2021 12:37:43 -0700 (PDT) Received: from smtpclient.apple ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id v10sm21221105wrq.0.2021.05.17.12.37.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 May 2021 12:37:43 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name From: Philipp In-Reply-To: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> Date: Mon, 17 May 2021 21:37:42 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> To: Dmitry Gutov X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48471 Cc: 48471@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Am 17.05.2021 um 02:23 schrieb Dmitry Gutov : >=20 > Hi! >=20 > On 16.05.2021 23:05, Philipp wrote: >> To work around this, XRef should probably only pass directory file = names >> to find, not directory names, at least on macOS. >=20 > Could you track down the piece of code that's misbehaving? Maybe with = a little edebug-ing. >=20 > I don't have any BSD find at hand, but >=20 > (xref--find-ignores-arguments '("./bar") "/tmp/foo/") >=20 > returns >=20 > "\\( -path /tmp/foo/bar \\) -prune -o " >=20 > here. Yes, and that's the problem. macOS find compares the "-path" value = against /tmp/foo//bar (note the double slash), and that doesn't match. = The exact shell command generated by project--files-in-directory is: find /tmp/foo/ \( -path /tmp/foo/bar \) -prune -o -type f -print0 And that doesn't work on macOS: $ find /tmp/foo/ \( -path /tmp/foo/bar \) -prune -o -type f -print /tmp/foo//baz /tmp/foo//bar This needs to be either "find /tmp/foo ..." (no trailing slash) or = "-path /tmp/foo//bar" (double slash). However, the latter than fails = with GNU find: $ gfind /tmp/foo/ \( -path /tmp/foo//bar \) -prune -o -type f -print /tmp/foo/baz /tmp/foo/bar So probably it's better to use the former option. That works with both = both macOS find and GNU find: $ find /tmp/foo \( -path /tmp/foo/bar \) -prune -o -type f -print /tmp/foo/baz $ gfind /tmp/foo \( -path /tmp/foo/bar \) -prune -o -type f -print /tmp/foo/baz There's a comment in project--files-in-directory ";; In case DIR is a = symlink." Probably the command should use the -H option instead. >=20 > Also, your return value of (project-files 'foo) seems to indicate that = you're using the version of project.el that doesn't include the commit = 665b4e7c4e093391a353506e7b2385f0902db70b. Please see if it fixed this = problem as well. This was a build from yesterday, it should definitely include that = commit.= From debbugs-submit-bounces@debbugs.gnu.org Mon May 17 16:02:51 2021 Received: (at 48471) by debbugs.gnu.org; 17 May 2021 20:02:51 +0000 Received: from localhost ([127.0.0.1]:53860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lijRz-0001n4-2R for submit@debbugs.gnu.org; Mon, 17 May 2021 16:02:51 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:34555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lijRy-0001mr-1s for 48471@debbugs.gnu.org; Mon, 17 May 2021 16:02:50 -0400 Received: by mail-wr1-f52.google.com with SMTP id r12so7723138wrp.1 for <48471@debbugs.gnu.org>; Mon, 17 May 2021 13:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=DPZ9d8A3KRNjuGthJ7p7Z6zZXXXRPtdsyYSHmenQf0o=; b=aBaZ5NVZBvkLAZ3H25bVHCSU5oiKb9v6JLPC1GSbq9m31FIVJgW1Vif1X1oyi8V6pA QabkOWa7gcXxIU9InUw4fEgixDsNJQUrnE6mGT38XSqDry1Blw0uBiAxqFxUoK1JOJZ6 ZFet6VgXXxxgDNZN73TeeNrGnAEEhG4VJmZ19LTJoak3Af1GUKBxH0BpsqrYvNKYzjat VFplYym4IBeQDJ7bsEqjE3DgFayVRNso03Saoofc0XaqrMO24EEPIv51r+o2QJzf8lYB 9ffjvITFl2XS0gXtnyeO+gTv5yAjBLa/SFnqCMnebZZDZzkkQjtSyk2yJNZGnTfQY2we cVLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=DPZ9d8A3KRNjuGthJ7p7Z6zZXXXRPtdsyYSHmenQf0o=; b=gwh7j13x+tWIKtdU3pOIqpX7WvyRtgbVNOBFANIGaMnZezDLzmcBDYgnPeMwOXVxDq Z69dDFVHvj77s2i0Y3fwq4ZcnBe2wmUtMJwbQQoPKHDnxeUJucrdS5BvzkfIoWv09yBK AOtth5IULL0y6vCeGxqcUIHyUDTZjUD2r/4DplrdO7V+rqVOA0jSQgHGszUH2PGTl1A1 MK7XazQfvjnsWE67kXMWx/atjaTlzWisJYM8tk0bUiQnjnmRO3Z6liSRtwCGVOaMa/aE UgttN7m1tNE+VemcMi3PaYoweFjb4+SHQ56phJ0dFeNrcmM+UBX4a132fYk5JxhdQc+6 5hdw== X-Gm-Message-State: AOAM53021zDPQCWjme1BJ3v2Cj6+GJ+HlIqJ9o3g8JRbyVGsBZuoUXR9 EaHhn4LLwam19wFIRMH/kFc= X-Google-Smtp-Source: ABdhPJyQBzYpgYXfBhhh5ANCpAiu9+OGCBrEh70/IxVvvFMIvIuc9/TKc6Gi2FG1v+69bWLsRxO28w== X-Received: by 2002:a5d:52c5:: with SMTP id r5mr1630016wrv.391.1621281764147; Mon, 17 May 2021 13:02:44 -0700 (PDT) Received: from smtpclient.apple ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id a11sm589284wrr.48.2021.05.17.13.02.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 May 2021 13:02:43 -0700 (PDT) From: Philipp Message-Id: <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_94A98D3D-5D69-4EC1-9619-60F3F9E44FE7" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name Date: Mon, 17 May 2021 22:02:42 +0200 In-Reply-To: <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> To: Dmitry Gutov References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48471 Cc: 48471@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --Apple-Mail=_94A98D3D-5D69-4EC1-9619-60F3F9E44FE7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 17.05.2021 um 21:37 schrieb Philipp : >=20 >=20 >=20 >> Am 17.05.2021 um 02:23 schrieb Dmitry Gutov : >>=20 >> Hi! >>=20 >> On 16.05.2021 23:05, Philipp wrote: >>> To work around this, XRef should probably only pass directory file = names >>> to find, not directory names, at least on macOS. >>=20 >> Could you track down the piece of code that's misbehaving? Maybe with = a little edebug-ing. >>=20 >> I don't have any BSD find at hand, but >>=20 >> (xref--find-ignores-arguments '("./bar") "/tmp/foo/") >>=20 >> returns >>=20 >> "\\( -path /tmp/foo/bar \\) -prune -o " >>=20 >> here. >=20 > Yes, and that's the problem. macOS find compares the "-path" value = against /tmp/foo//bar (note the double slash), and that doesn't match. = The exact shell command generated by project--files-in-directory is: >=20 > find /tmp/foo/ \( -path /tmp/foo/bar \) -prune -o -type f -print0 >=20 > And that doesn't work on macOS: >=20 > $ find /tmp/foo/ \( -path /tmp/foo/bar \) -prune -o -type f -print > /tmp/foo//baz > /tmp/foo//bar >=20 > This needs to be either "find /tmp/foo ..." (no trailing slash) or = "-path /tmp/foo//bar" (double slash). However, the latter than fails = with GNU find: >=20 > $ gfind /tmp/foo/ \( -path /tmp/foo//bar \) -prune -o -type f -print > /tmp/foo/baz > /tmp/foo/bar >=20 > So probably it's better to use the former option. That works with = both both macOS find and GNU find: >=20 > $ find /tmp/foo \( -path /tmp/foo/bar \) -prune -o -type f -print > /tmp/foo/baz > $ gfind /tmp/foo \( -path /tmp/foo/bar \) -prune -o -type f -print > /tmp/foo/baz >=20 > There's a comment in project--files-in-directory ";; In case DIR is a = symlink." Probably the command should use the -H option instead. The attached patch fixes both unit tests for project.el on my macOS = system. --Apple-Mail=_94A98D3D-5D69-4EC1-9619-60F3F9E44FE7 Content-Disposition: attachment; filename=0001-Fix-find-invocation-for-macOS-Bug-48471.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Fix-find-invocation-for-macOS-Bug-48471.patch" Content-Transfer-Encoding: quoted-printable =46rom=2008e862623eb696a7c3df0404784abf34ed0d1ab6=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Philipp=20Stephani=20=0ADate:=20= Mon,=2017=20May=202021=2021:59:57=20+0200=0ASubject:=20[PATCH]=20Fix=20= find=20invocation=20for=20macOS=20(Bug#48471).=0A=0A*=20= lisp/progmodes/project.el=20(project--files-in-directory):=20Instead=20= of=0Aappending=20a=20slash=20(which=20doesn't=20work=20well=20with=20= macOS=20find),=20remove=0Atrailing=20slash=20and=20pass=20-H=20instead.=0A= ---=0A=20lisp/progmodes/project.el=20|=205=20++---=0A=201=20file=20= changed,=202=20insertions(+),=203=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/project.el=20b/lisp/progmodes/project.el=0Aindex=20= 047f55ed1a..eab60756c8=20100644=0A---=20a/lisp/progmodes/project.el=0A= +++=20b/lisp/progmodes/project.el=0A@@=20-297,11=20+297,10=20@@=20= project--files-in-directory=0A=20=20=20=20=20=20=20=20=20=20;;=20= expanded=20and=20not=20left=20for=20the=20shell=20command=0A=20=20=20=20=20= =20=20=20=20=20;;=20to=20interpret.=0A=20=20=20=20=20=20=20=20=20=20= (localdir=20(file-name-unquote=20(file-local-name=20(expand-file-name=20= dir))))=0A-=20=20=20=20=20=20=20=20=20(command=20(format=20"%s=20%s=20%s=20= -type=20f=20%s=20-print0"=0A+=20=20=20=20=20=20=20=20=20(command=20= (format=20"%s=20-H=20%s=20%s=20-type=20f=20%s=20-print0"=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= find-program=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20(shell-quote-argument=0A-=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20;;=20In=20case=20= DIR=20is=20a=20symlink.=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(file-name-as-directory=20localdir))=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(directory-file-name=20localdir))=20;=20Bug#48471=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (xref--find-ignores-arguments=20ignores=20localdir)=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(if=20files=0A= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(concat=20(shell-quote-argument=20"(")=0A--=20=0A= 2.30.1=20(Apple=20Git-130)=0A=0A= --Apple-Mail=_94A98D3D-5D69-4EC1-9619-60F3F9E44FE7-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 17 19:07:04 2021 Received: (at 48471) by debbugs.gnu.org; 17 May 2021 23:07:04 +0000 Received: from localhost ([127.0.0.1]:54027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1limKG-0006pP-5u for submit@debbugs.gnu.org; Mon, 17 May 2021 19:07:04 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:43978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1limKB-0006oq-HD for 48471@debbugs.gnu.org; Mon, 17 May 2021 19:07:03 -0400 Received: by mail-wr1-f54.google.com with SMTP id p7so4341456wru.10 for <48471@debbugs.gnu.org>; Mon, 17 May 2021 16:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0Z/iu5lub8MDOm/1/mJ9/16snRvaucU65Fa+EBCbcSQ=; b=fHvmwnUukabQpfE9qsH8lWfEbyrYoIEzMMUaVy9gwdzItfTWrOwfuKl6nCMvzkHFLK ifVj5OOiJUc9//q8KdVqLn+Md2PfZWBb4apOk+R50+kKJkLSgi9ULg4IGtqGJ+SzhGO6 P5TRyXC4rIaj/JmjwtHEFMGE0dxHvXARwz4qErhOPfhhVoFOkR1vH0Bx8E3wUDGqaVDw gK8wTFHn7KnIpzIJge8QAJM1Ygs06hDj93WkncmYO0gu+EJwdb8DzXfkuaPoK6eCyHZW WaEdFfoShrsPRf63dTwMUmFpbgZUoKC2Ox6v0/k4ElHtYtKOagWBVuAamTtT9MV1h0JR //1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0Z/iu5lub8MDOm/1/mJ9/16snRvaucU65Fa+EBCbcSQ=; b=LpyW/3Pjia5Cj1Z9tR7A36C/aejrqYhPn64dsYL6X1I4vRTgqpi5E5RZncNUCtcO5S e8CXhC77qsLY1eqmn0nZv39bhPjuWDc7DtorGVmoHJclYNp/gygRi1HbVqQgNfCTAexq emGEh7GigWsFX7vCSOINR3XJb4YCwdOnP6T+IagdRP9BsOyEpZH5p2ygGCJ95Wug3CN4 9NMUW0RiP7p++9nsDVdi//8tviXGfkNx08Hgs3PMnL06ouAPvzcfPEmbzoRS3s7NW7gA rvl5nJF5N1sisEoV9/zENVE91kwEEPDAHEpbvlahFx2hrp+69RTSPo4ch1UZxsJwKPk+ 3hhw== X-Gm-Message-State: AOAM533XmisDGMZayYhD5e/KCKe9CmWjuBCmBLHpGtAmiyCZt+IHy7LI UzGRnyoWHbWY5N0jce+Xkxz4iTX7FbY= X-Google-Smtp-Source: ABdhPJytgDYBrZYYO5a1hrNGd4gzWg4UuFTCVn1T8n28nM2TwP9wOeWaLlXAXn+ec3kOUTpvmQannA== X-Received: by 2002:a5d:670c:: with SMTP id o12mr2461776wru.223.1621292813673; Mon, 17 May 2021 16:06:53 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m11sm18926850wri.44.2021.05.17.16.06.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 16:06:52 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Philipp References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> From: Dmitry Gutov Message-ID: <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> Date: Tue, 18 May 2021 02:06:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 48471 Cc: 48471@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 17.05.2021 23:02, Philipp wrote: > The attached patch fixes both unit tests for project.el on my macOS system. Thanks, now I think I understand the problem. And you're suggesting the alternative solution also proposed previously in the https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00156.html discussion. Please go ahead with the patch, though it would be better to use a version of it which fixes the same behavior in two other related functions as well. The previous patch for that approach is here: https://lists.gnu.org/archive/html/emacs-devel/2021-01/txtDduOxGoiGz.txt (From the message https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00345.html). Also, since it will fix the double-slash problem, we can undo the change from 331e40a8fd491ceb35c08a3345785dab61bc60d9, the one that made our comparisons lax (to match both single and double slashes). From debbugs-submit-bounces@debbugs.gnu.org Sun May 23 07:08:24 2021 Received: (at 48471) by debbugs.gnu.org; 23 May 2021 11:08:24 +0000 Received: from localhost ([127.0.0.1]:40660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkly4-0001JG-6e for submit@debbugs.gnu.org; Sun, 23 May 2021 07:08:24 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:44927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkly0-0001J2-W7 for 48471@debbugs.gnu.org; Sun, 23 May 2021 07:08:23 -0400 Received: by mail-wr1-f45.google.com with SMTP id i17so25470721wrq.11 for <48471@debbugs.gnu.org>; Sun, 23 May 2021 04:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8LRQogXHR0R4035I3tpNBE4AwgHmGRXCjJKK+EXC0G4=; b=d7HSy283ZKfYmMONjS7dBm1k55HzJ/uA5PeuK8bpSdY5/WUpCNY8dsiChsvVezYBl6 4VP6SgyQbZuZKQqmue1cIYsVxTVM6RO2L/Ap8aMSnCDJd2tX/+aN4Vhy8w9+HGAj3C3Y 8ImNUHvQWgR6oaCSwnpF0Mpn4ObOjQz3wSjnKG/MbZo4fprXIjafOexOjzokt+yNxJRE OFEIAGa9Wg6xAOGd4YbWaUEwRYlsZyxLX2UzzpnJONQnWzxZiufpAmmeCIO5JGONdovF hREG7E6LMowMvCL5PCeTUD0IZagVDE1+R8IACAUH1yaEsGtXNN7lPhBQ5E4qnju5NE5x fCfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8LRQogXHR0R4035I3tpNBE4AwgHmGRXCjJKK+EXC0G4=; b=X8+gYeXW+52dce6tQf8LrNLBpWXnrkhUcLvxSy3dyZxQmvou0+sut2Xm/ZWJFu1eLl j7Jw6avrHnYc645+cfAqmuOqHPrqYYSiRymQyGF2RIBeOIlk3ivzj69u57+buBhnj/Ts IiIUh3s2Z/lXj009ba16dZ4Q3r9zegFSWg0op7YiWE+cNvKcq/fiPbPMRQNc5G9QqnkO Y7PZl0ZaYGxbAQ/sPf4dgYNBYdd0yNVPer75PD6K73I18C6JH/0jGZthwwvYE4BGzzbM bvDL99lKzQr3XNFv+GfEyfzY0+M0pRPZG5HGHNNcbsaAEIp01infA3B+6LhSyOSvMn1d 3pGA== X-Gm-Message-State: AOAM531whXbLKgiI2sR1vIUqKwck8Ka0E7gG5d+fAw/6mJNlDV4mYoMw etXNByIGY73MzH+1LbjN2Io= X-Google-Smtp-Source: ABdhPJzJdSgMUqDOwXY0mkYPUX2szOyK+ju2+dTn/PTTAYw+47dDAlUutq0wesuVq4wmjCe5k7zP9Q== X-Received: by 2002:a5d:554e:: with SMTP id g14mr17739197wrw.131.1621768095253; Sun, 23 May 2021 04:08:15 -0700 (PDT) Received: from smtpclient.apple ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id x13sm8246862wro.31.2021.05.23.04.08.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 May 2021 04:08:14 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name From: Philipp In-Reply-To: <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> Date: Sun, 23 May 2021 13:08:14 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> To: Dmitry Gutov X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48471 Cc: 48471@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Am 18.05.2021 um 01:06 schrieb Dmitry Gutov : >=20 > On 17.05.2021 23:02, Philipp wrote: >> The attached patch fixes both unit tests for project.el on my macOS = system. >=20 > Thanks, now I think I understand the problem. And you're suggesting = the alternative solution also proposed previously in the = https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00156.html = discussion. >=20 > Please go ahead with the patch, Thanks, I've installed the patch as commit = 2e55201b8085d64c76d9a35bffff90a02133647e. > though it would be better to use a version of it which fixes the same = behavior in two other related functions as well. The previous patch for = that approach is here: = https://lists.gnu.org/archive/html/emacs-devel/2021-01/txtDduOxGoiGz.txt >=20 > (=46rom the message = https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00345.html). >=20 > Also, since it will fix the double-slash problem, we can undo the = change from 331e40a8fd491ceb35c08a3345785dab61bc60d9, the one that made = our comparisons lax (to match both single and double slashes). I'm also fine with either of those, but we should first make sure that = the code in question is well-covered by unit tests to avoid regressions.= From debbugs-submit-bounces@debbugs.gnu.org Sat May 29 17:44:51 2021 Received: (at 48471) by debbugs.gnu.org; 29 May 2021 21:44:51 +0000 Received: from localhost ([127.0.0.1]:57855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ln6lH-0004Kr-7W for submit@debbugs.gnu.org; Sat, 29 May 2021 17:44:51 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:38448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ln6lE-0004Kb-Vp for 48471@debbugs.gnu.org; Sat, 29 May 2021 17:44:50 -0400 Received: by mail-wm1-f42.google.com with SMTP id u4-20020a05600c00c4b02901774b80945cso6493727wmm.3 for <48471@debbugs.gnu.org>; Sat, 29 May 2021 14:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nMNKzAsFyQ3BY7Ymb1QUk71IDzyfCST2fw4HI7skXXs=; b=QUmHT2NNf7yNuL0SZCOtEP5PbGN557VPLi91plVMpRcaMdAvta6GrwXXuo9UmPCqGy iCbezmHJQkTaAqWzO/3HkhqO070+i+ZCsOUaCDOwXj8M3S9dDovE7lsbPfEgTqRc+P68 v0SqBR6v5qRGPdwvgCzWCUD1Lrnyvh6AlBPXdWBF7KDLtcHnJnZMsdoWK9f/3wpqSvWO YIPsYI1PCMyXj3E/DULryRfIR9CjYzt+SvCrSg74kEgjImfGbHjTBEAIxzLHL6fo/lNl e28ZS0RmwtR9PfC5KWCxQA2B4KGMlync+xktfPnu9eMzpNBUCi9am+5mnfxbr27XYNyg FZpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nMNKzAsFyQ3BY7Ymb1QUk71IDzyfCST2fw4HI7skXXs=; b=t8RJ1LhavnUYlt3SCNG0VknJ0qkd/KYMDkRxLWoi9OKBvmIQ4ny80vtDdp5OqjMh7o 62AU0KJe+Ap4IAJyGfvAF8L5gsyjh75nSrFgyJiKh/LaJvb6Lr1j+Hg73t6r1yC6zBwB 2aIvYmA/uzOqz5hEdLof1tG7jS4/SyYAlqxqcsaH2N7M+1Dtt9bADaLDA7BDpoQ57Fi/ OooEWDgv+adGppbMKInbkod/wwrSinmMorazJmNDR1YYM/gLtJSVBacnh8f+Kh6iJEgt C0DSyfdEEoyDE38/6c+I1C76dmmYi2Q9prMyAJll1LXlYJLA8vYeicvwOCabI/JMiQGA ul1g== X-Gm-Message-State: AOAM532CWhG7BcqofZXBg3wq5XryECl05vrxHLR3+a/tZEurfh8r4MAE JTB7u3n2ogZGbDv8o1uPgIM= X-Google-Smtp-Source: ABdhPJyKkKuyNpq4tgKDyxyBqPhIzK/MHlY2eq1PLU0LrZCfvXFAMq0vye5Iobsz/EP/20yBad+P2g== X-Received: by 2002:a1c:e40b:: with SMTP id b11mr19267182wmh.123.1622324682936; Sat, 29 May 2021 14:44:42 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b135sm9497547wmb.5.2021.05.29.14.44.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 May 2021 14:44:42 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Philipp References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> From: Dmitry Gutov Message-ID: <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> Date: Sun, 30 May 2021 00:44:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 48471 Cc: Lars Magne Ingebrigtsen , 48471@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 23.05.2021 14:08, Philipp wrote: >> though it would be better to use a version of it which fixes the same behavior in two other related functions as well. The previous patch for that approach is here:https://lists.gnu.org/archive/html/emacs-devel/2021-01/txtDduOxGoiGz.txt >> >> (From the messagehttps://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00345.html). >> >> Also, since it will fix the double-slash problem, we can undo the change from 331e40a8fd491ceb35c08a3345785dab61bc60d9, the one that made our comparisons lax (to match both single and double slashes). > I'm also fine with either of those, but we should first make sure that the code in question is well-covered by unit tests to avoid regressions. Tests are good to have, yes. Speaking of the implementation, any chance we would want to have "-H" inside grep-find-template by default? Has that been considered in the past perhaps? Eli, Lars, Stefan? The simplest change to that effect should look like this: diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index e9fbcbbfcd..9956ba79d0 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -777,19 +777,19 @@ grep-compute-defaults (format "%s " (null-device)) ""))) (cond ((eq grep-find-use-xargs 'gnu) - (format "%s -type f -print0 | \"%s\" -0 %s" + (format "%s -H -type f -print0 | \"%s\" -0 %s" find-program xargs-program gcmd)) ((eq grep-find-use-xargs 'gnu-sort) - (format "%s -type f -print0 | sort -z | \"%s\" -0 %s" + (format "%s -H -type f -print0 | sort -z | \"%s\" -0 %s" find-program xargs-program gcmd)) ((eq grep-find-use-xargs 'exec) - (format "%s -type f -exec %s %s %s%s" + (format "%s -H -type f -exec %s %s %s%s" find-program gcmd quot-braces null quot-scolon)) ((eq grep-find-use-xargs 'exec-plus) - (format "%s -type f -exec %s %s%s +" + (format "%s -H -type f -exec %s %s%s +" find-program gcmd null quot-braces)) (t - (format "%s -type f -print | \"%s\" %s" + (format "%s -H -type f -print | \"%s\" %s" find-program xargs-program gcmd)))))))) ;; Save defaults for this host. From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 00:29:13 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 04:29:13 +0000 Received: from localhost ([127.0.0.1]:58071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnD4b-0007rY-IH for submit@debbugs.gnu.org; Sun, 30 May 2021 00:29:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnD4Z-0007rL-S0 for 48471@debbugs.gnu.org; Sun, 30 May 2021 00:29:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WWQmMe7kKN8eKszCs94u/ac128BvEUhlAd9yoG0cKD8=; b=KY6T4+fENSXUV1AP9lCfv7si+e MAf3/KTWKZUQw680JUdZklBgczeHeehRI/QJuN8CF1Q4gAlRA1eXJZKcvTA79O9Qh8L7hhDN0fd/U njaUVfKUUSogGhaAMCg2m1surY0r1XV2mWv4BqmGb8tlrb9jqz3LntS48qvK0+BLiqGQ=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnD4R-0005lE-ID; Sun, 30 May 2021 06:29:05 +0200 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVNHBlwSymUXCQz GRLAk0r///+AteMNAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UFHgM5NN8NSBsAAAGVSURBVDjLrZTb dcMwCEBBLCAkD2DTDIDDBHG1/0wFO/IjTT56TvlwZF/xhgD8SfL65I88jQRQcAQhQJz0ADzJWERy EkkgfujAzyOWFaY8+cvJ3Pjm5IJ7JPjifhoxM/AI5QWIsMjk5svVwymrfxF5Y34NdLm1K8DfGrk/ 7c09FwsBrzCQ2VHbeDuL4gXoDg4f272up6BXYNSBdfD8Ej/wdHHSCKn6FRoD5F0jbgKS1lAb1sg3 jeJMGw/tYYaN6x6vuM4s0lozGlqqW5ZItni4cymt3SpJS71lNi92r6kMt1zyzLspsiI1kcrAdP/W oY1T1wAlJsOSLX0RC49HtZQ55lbnGhXpIJLDoIiYATnvGl4Ot2bRI87MPSiESH1to49jLvhMA8LK XLObosJAiD3xrb5Y3Qcvrox0BqA16AqO79HXFcyPML3Pw9aNyXulD4/uGKbnEKivZ3a6Aw9ntWWl dNA7qOF+Jl+sHM1HmQ6gkMDurO4YpT2OKfF/ADKOSH2vb5epZ2RmzH6/LS8bEgX04n7Yny4/6PdH 7AKsn3wAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDUtMzBUMDM6NTc6NTIrMDA6MDCHmhC0AAAA JXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1LTMwVDAzOjU3OjUyKzAwOjAw9seoCAAAAABJRU5ErkJg gg== X-Now-Playing: Crosby, Stills, Nash & Young's =?utf-8?B?X0TDqWrDoA==?= Vu_: "Country Girl (Whiskey Boot Hill; Down, Down, Down; Country Girl, I Think You're Pretty)" Date: Sun, 30 May 2021 06:29:03 +0200 In-Reply-To: <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> (Dmitry Gutov's message of "Sun, 30 May 2021 00:44:40 +0300") Message-ID: <87tumk6e0g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > Speaking of the implementation, any chance we would want to have "-H" > inside grep-find-template by default? > > Has that been considered in the past perhaps? Eli, Lars, Stefan? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48471 Cc: Philipp , 48471@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > Speaking of the implementation, any chance we would want to have "-H" > inside grep-find-template by default? > > Has that been considered in the past perhaps? Eli, Lars, Stefan? I'm surprised that it isn't already in there, so unless there's some compatibility problem (with some grep versions not having -H), I think your patch looks good. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 02:31:54 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 06:31:54 +0000 Received: from localhost ([127.0.0.1]:58291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnEzK-00038A-6Z for submit@debbugs.gnu.org; Sun, 30 May 2021 02:31:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnEzI-000337-Gf for 48471@debbugs.gnu.org; Sun, 30 May 2021 02:31:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34222) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnEzC-0007MY-6B; Sun, 30 May 2021 02:31:46 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnEzB-0001pA-Os; Sun, 30 May 2021 02:31:46 -0400 Date: Sun, 30 May 2021 09:31:56 +0300 Message-Id: <83r1ho4tr7.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov , Andreas Schwab , Paul Eggert In-Reply-To: <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> (message from Dmitry Gutov on Sun, 30 May 2021 00:44:40 +0300) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48471 Cc: p.stephani2@gmail.com, 48471@debbugs.gnu.org, larsi@gnus.org, monnier@IRO.UMontreal.CA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Dmitry Gutov > Date: Sun, 30 May 2021 00:44:40 +0300 > Cc: Lars Magne Ingebrigtsen , 48471@debbugs.gnu.org, > Stefan Monnier > > Speaking of the implementation, any chance we would want to have "-H" > inside grep-find-template by default? It's in Posix, but I'm not sure how portable it is in practice. Paul, Andreas, do you happen to know? Perhaps for 100% portability we should probe for its support? From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 07:13:31 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 11:13:31 +0000 Received: from localhost ([127.0.0.1]:58461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnJNr-0006wy-JE for submit@debbugs.gnu.org; Sun, 30 May 2021 07:13:31 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:40482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnJNp-0006wi-H0 for 48471@debbugs.gnu.org; Sun, 30 May 2021 07:13:30 -0400 Received: by mail-wm1-f46.google.com with SMTP id b145-20020a1c80970000b029019c8c824054so113977wmd.5 for <48471@debbugs.gnu.org>; Sun, 30 May 2021 04:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IIIXYnGPeyPK5hxSs6G+CA6z2x/n48HXUeiWv8Drl8o=; b=Niw3YWMaut+nJZU2jGvJS2M/Ogmj5IBzqFfOe5IkkMT7sKgPseHXrt4dbBONJSPI54 XxZ1z0tmbl5qlPewj0Ha3aB2ay61CdM4wgFIZ04yh0mB1fA2uhSjn6XAfMfwv/FvfHqO HaEZMpAb4ASMQ04214kuz9MGKmY8vjmOZ2K2VD+beN9K0EdDgwZ8n/oUIolypdK/VavC CC3ylC166tUi9nTxZD6bLmLzID9HiftJ1kkJG1aooYa7HA2jrr8TDt8fHjaNQHAQrxIW 1YJenVt7U4Sk2VPjVnPMPo/2N7VvDTPmwVZT8NW8OjOYTpgXFXSX0fdQeMW6LusxrYpH tYGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IIIXYnGPeyPK5hxSs6G+CA6z2x/n48HXUeiWv8Drl8o=; b=cQMWsk8/ZLTNM0S2HrBs30Jj2wuW8AHz/p5fe70F9Ww3tUiEuq2cUIuHkTc6IfVGPv alvQs4LUMX8prqKO+yj+2SA+aPrINvj/4BsGdi+1paV9CoAqXhpWwCLViEhPAQH9+PMK nOhlSrzqMdBkBgnX4q4hvvdZd9b9odK3I1QsAPniDOJus1F9SmEbSwZtRyb6dF7AQZkS PyC6yvEwkQ7ikXGvhinJefXYeC0WVlMPM1JuKqE09Co5oAULF37fMiSE3MeyBvFFtFaM okx3KkHvEUANAYSQPO0Ghz85f9bvmn8/0BRmLmIIZHhX4DN/HYEbhFVSE53avvAZ2GlA 0Ddg== X-Gm-Message-State: AOAM5323qCwQAKnFOjZZV3wkInO940coDJSHt0ymru7PwX9o1p49ZXcc KAcJj5l9BMHhUHWsCL97C7g= X-Google-Smtp-Source: ABdhPJzq1gTQMhcPFGytELXuurEdQ++xfhzkOPszWvQsD+L94MtHZTZX5uXvgmUkhVk6WaFMlIoJUQ== X-Received: by 2002:a05:600c:3515:: with SMTP id h21mr21762640wmq.148.1622373203652; Sun, 30 May 2021 04:13:23 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g23sm2297544wmk.3.2021.05.30.04.13.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 May 2021 04:13:22 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Lars Ingebrigtsen References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <87tumk6e0g.fsf@gnus.org> From: Dmitry Gutov Message-ID: <5504ef11-2bf8-0996-2b3e-ef9a472417b9@yandex.ru> Date: Sun, 30 May 2021 14:13:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <87tumk6e0g.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 48471 Cc: Philipp , 48471@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 30.05.2021 07:29, Lars Ingebrigtsen wrote: > (with some grep versions not having -H) Versions of 'find', you mean. From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 07:14:54 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 11:14:54 +0000 Received: from localhost ([127.0.0.1]:58465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnJPB-0006zC-SS for submit@debbugs.gnu.org; Sun, 30 May 2021 07:14:54 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:44991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnJPA-0006yy-ON for 48471@debbugs.gnu.org; Sun, 30 May 2021 07:14:53 -0400 Received: by mail-wr1-f42.google.com with SMTP id r10so7803338wrj.11 for <48471@debbugs.gnu.org>; Sun, 30 May 2021 04:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YVgrRy0hc+tSwPldcP1EFfXTAmbiHql5TLQz0Jvre3k=; b=uXnoZYpliGPRaHiHIlM5Mwb/u5j/ppLNudA+6JM2ne2fHrdM2uLxiYDkZpCoRuY5ZF 3sH3fBgr3noUbHFZlWtcRZfetj9pjQsKs64cwmPhQofiQpytku/AHLK5D1iBFqiZ9FZR IMioZoA3ddmGFqFtI4fbRnVsR8W9XSitBBkPD1LQFdcZhFmOQ5vfKQfdEJRvcNZX+x6b 1IPcT9Cs0q0ekijFqEGkEXYho5ha+iRuH0JXuKTfotLSJ1CHqgZ/5AIhGTj8t8oI831i MrF8hQeKNRC5YlsaU96dNmV1c19Nk+Wl6wdZuTdDj1RnPDqw1iuT1RJJVi7TlEADOe1w rRmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YVgrRy0hc+tSwPldcP1EFfXTAmbiHql5TLQz0Jvre3k=; b=drPxT/uM1uw/+P7f11bIZfMP8lR7lBIAFh1bZeLZurgHC8+r9jg8W0vEyD1E9eAjBA cEWQQBdkXAs2Co3D/dej8C2fwvvAnJgwzLaKQhj1mn3QiX6xkcvSrad0k/MV2vV1m04e 2/xUTz5WWajhJBI9Z67xtWVuoQR0KP9l5mj+pDbcew3iD/fW+4308lBJ3CO42tnyiYUi AQCbB2J0DY0mDtfcr2vpR0J8OKNPqKZ8cfIli61uqEYakXwdXj/kemKstNj+Gza/hBlJ luzSDNklWQ3OjI2IWWFDbq5jJMlkcdTOm649tGYFcXReB4vvrZHwdJoSK1iT1qGN6m1V J6zg== X-Gm-Message-State: AOAM5303jNsU3tEZDzDvwBUwe3KDBp0Uzjcrq4YL+gFRyfqn3mROy3ot r8I35F+0kH2cqzbCWsVdZr4= X-Google-Smtp-Source: ABdhPJxq8NVf1lXEszxbAEB1+VX+2yY5/ArcMFYOuP7K4hA1h7JQjkIFriXTCtX2paiSfr+F5yPAQQ== X-Received: by 2002:a5d:4b48:: with SMTP id w8mr17272312wrs.203.1622373287062; Sun, 30 May 2021 04:14:47 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p187sm12043601wmp.28.2021.05.30.04.14.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 May 2021 04:14:46 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Eli Zaretskii , Andreas Schwab , Paul Eggert References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> From: Dmitry Gutov Message-ID: <19304fec-2bb1-1cbb-3e58-177537981911@yandex.ru> Date: Sun, 30 May 2021 14:14:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <83r1ho4tr7.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: 48471 Cc: p.stephani2@gmail.com, 48471@debbugs.gnu.org, larsi@gnus.org, monnier@IRO.UMontreal.CA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 30.05.2021 09:31, Eli Zaretskii wrote: > It's in Posix, but I'm not sure how portable it is in practice. Paul, > Andreas, do you happen to know? > > Perhaps for 100% portability we should probe for its support? Since even the ancient BSD find on Macs supports it, I figured it's widespread enough. But if people say otherwise, I suppose we could add a probe. From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:27:42 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 16:27:42 +0000 Received: from localhost ([127.0.0.1]:60246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOHu-0002vw-Fu for submit@debbugs.gnu.org; Sun, 30 May 2021 12:27:42 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOHt-0002vk-2x for 48471@debbugs.gnu.org; Sun, 30 May 2021 12:27:41 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 981ED16008C; Sun, 30 May 2021 09:27:35 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yxysrFf5-Lzg; Sun, 30 May 2021 09:27:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EFEF6160091; Sun, 30 May 2021 09:27:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aUGilrEa6gyG; Sun, 30 May 2021 09:27:34 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BB8E716008C; Sun, 30 May 2021 09:27:34 -0700 (PDT) To: Eli Zaretskii , Dmitry Gutov , Andreas Schwab References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name Message-ID: Date: Sun, 30 May 2021 09:27:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <83r1ho4tr7.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 48471 Cc: p.stephani2@gmail.com, 48471@debbugs.gnu.org, larsi@gnus.org, monnier@IRO.UMontreal.CA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---) On 5/29/21 11:31 PM, Eli Zaretskii wrote: > It's in Posix, but I'm not sure how portable it is in practice. Paul, > Andreas, do you happen to know? Although 'find -H' was not in 7th edition Unix, it was added reasonably=20 soon after that and it should be in all currently-supported POSIXish=20 platforms. From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:37:01 2021 Received: (at 48471) by debbugs.gnu.org; 30 May 2021 16:37:01 +0000 Received: from localhost ([127.0.0.1]:60266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOQu-0003BJ-TN for submit@debbugs.gnu.org; Sun, 30 May 2021 12:37:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOQt-0003B1-7r for 48471@debbugs.gnu.org; Sun, 30 May 2021 12:37:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42342) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnOQk-00010o-T6; Sun, 30 May 2021 12:36:51 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4183 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnOQh-0001eN-H6; Sun, 30 May 2021 12:36:49 -0400 Date: Sun, 30 May 2021 19:36:59 +0300 Message-Id: <83tumk2n6c.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-Reply-To: (message from Paul Eggert on Sun, 30 May 2021 09:27:34 -0700) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48471 Cc: p.stephani2@gmail.com, 48471@debbugs.gnu.org, schwab@linux-m68k.org, monnier@IRO.UMontreal.CA, dgutov@yandex.ru, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: p.stephani2@gmail.com, larsi@gnus.org, 48471@debbugs.gnu.org, > monnier@IRO.UMontreal.CA > From: Paul Eggert > Date: Sun, 30 May 2021 09:27:34 -0700 > > On 5/29/21 11:31 PM, Eli Zaretskii wrote: > > It's in Posix, but I'm not sure how portable it is in practice. Paul, > > Andreas, do you happen to know? > > Although 'find -H' was not in 7th edition Unix, it was added reasonably > soon after that and it should be in all currently-supported POSIXish > platforms. Thanks, I guess it's safe to use it then. From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 01:33:24 2021 Received: (at 48471) by debbugs.gnu.org; 31 May 2021 05:33:24 +0000 Received: from localhost ([127.0.0.1]:60756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnaYF-00064Y-Qb for submit@debbugs.gnu.org; Mon, 31 May 2021 01:33:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnaYE-00064K-Ia for 48471@debbugs.gnu.org; Mon, 31 May 2021 01:33:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pDmv08U4uMMT1IvDxWRazOoj0o6B+E4TvrdrL6mrlWQ=; b=s68+QO5HEx0XfWCxtzLuKxVN3u lXis413gSACjJhdUjHfbndnVkxWIF1/uRfjcYro9WSZuH+okaWYWEFzGg+/QlE8iQHDT6U0C/k3Of Z9oVNhaVceht6eJva8eUijkyan3j3BxPDiOQOsRTDa4qQNTxBgId/agXuMf1Yq+NFAE0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnaY5-0005tg-Ia; Mon, 31 May 2021 07:33:15 +0200 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <87tumk6e0g.fsf@gnus.org> <5504ef11-2bf8-0996-2b3e-ef9a472417b9@yandex.ru> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEUWEhJEOztlW1qG eneMgHzQw7+ompgsJib///9RCNRGAAAAAWJLR0QIht6VegAAAAd0SU1FB+UFHwUdOJti/kEAAAGB SURBVDjLlZLNUoMwEMeDOubKojNcJTjj1YGOD9AyvEE5Oy3Ea9bLvr7ZTUhbpH78Lwn7y36jVGYW atvWPCml7gbrNe0v9O7BjRX5r4gP9ji9JjAJkOPQW8uhbgUMU4woh4AY6lKXoOskGTuugGkFjLGK YT2HpP9j8iUY/g2uhfJjb/s1oJRGMPVbsPiRjb7PXCVpAihMUTe8q8axxWlSJMICvIoKDIMMkubl Ajipatx+NiFEUgD247zkbtN3uzxsMOcm4+7suOl2Au73+zwzddtJM/3o17INyTkiXxT6eoBTv6gf pQmdIkdYPR4qIOR+KFFCKOpW1ts82zgSlP4B0Gz4Bxv6NESf2vlo3qt6aIQec8lBbPUHcWG1qWvT MsgqKLXYS/+EV9A0RjxKQgSKcvwAIY4doZQiifjCjwSUyCHkvQwfZwDhoBmVyUMsM4mppEEh0ceF I4yDUtTZpNUpuO9kOV4X/egbUYlcYyH27zrz16GB9BUb0os0p1ZPtx/0BRDzCCYXISHNAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTA1LTMxVDA1OjI5OjU2KzAwOjAwSqpf2wAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0wNS0zMVQwNToyOTo1NiswMDowMDv352cAAAAASUVORK5CYII= X-Now-Playing: Scorn's _Cafe Mor_: "The Lower The Middle Our Bit" Date: Mon, 31 May 2021 07:33:13 +0200 In-Reply-To: <5504ef11-2bf8-0996-2b3e-ef9a472417b9@yandex.ru> (Dmitry Gutov's message of "Sun, 30 May 2021 14:13:21 +0300") Message-ID: <87pmx7lb6u.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > On 30.05.2021 07:29, Lars Ingebrigtsen wrote: >> (with some grep versions not having -H) > > Versions of 'find', you mean. Ah, yes indeed. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48471 Cc: Philipp , 48471@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > On 30.05.2021 07:29, Lars Ingebrigtsen wrote: >> (with some grep versions not having -H) > > Versions of 'find', you mean. Ah, yes indeed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 06 21:58:32 2021 Received: (at 48471-done) by debbugs.gnu.org; 7 Jun 2021 01:58:32 +0000 Received: from localhost ([127.0.0.1]:54205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lq4XA-0000KT-AN for submit@debbugs.gnu.org; Sun, 06 Jun 2021 21:58:32 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:50721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lq4X7-0000KF-Qw for 48471-done@debbugs.gnu.org; Sun, 06 Jun 2021 21:58:30 -0400 Received: by mail-wm1-f45.google.com with SMTP id f20so4737878wmg.0 for <48471-done@debbugs.gnu.org>; Sun, 06 Jun 2021 18:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Kb+kszine83loT0xLKz6zXzETiBBWe89hynGh3tJ+ig=; b=brPplF6+C6N522bgRKL5BOZVt27SuL/VLcuoOTmu6YI0XgaoZuiQpv683wmZ/lqbiI nVXaQc30UhgbSUx0jXRrLLww99F/pNU5M/8joELFePqj5IKdbSjwdQmZmjrw9PQ4Z1Ks OEBH7jLqlTm7Ben2rZFd4YtruKY2pfxMeCzWs3HrPQVIW/tUH/DPaor+4dkruogm/s7q y4Qhn2aAaVA39mpxs5BnSzf5g6tMYw3j2epHd07VciZrNKOvvZM/NKQ0uxm27oO/eECM HtRHabG8dHPiUAnfesVuu6vCiPY/iAwtBWV3VrHLVkjZa61HDoHFDW018+20PGNSEz+9 UxgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Kb+kszine83loT0xLKz6zXzETiBBWe89hynGh3tJ+ig=; b=YeqRCoxf5QJIQC0zUFNUAi3+GTIWjw8ecKNchkZyjRdXimqSAMTiE3yc9T0mYs3r9z B77+VgIsyZsjvO5yw9GrrEHE0SaUDRFX5fXLEisX0krQLlPfGX3MAFfWV1d8ABqqgyPA vLpu7UI2mtZHLSMJL12mD2oNt8OqwIbOKDP4WFDVu1E2+xghj1+O/cijQeaFPI+CZ/NV /jsKHWu1ft3i9AzrFlgst1GZnsIbKdHpWrm/7zDkAYNFNKyX7igrjZHEwLaK26wKbKgZ 6VcBGdJa4TZpVuJbVV//z47WfpzPtV2nVN1U+BfIw+/oyt59BF9UyqFuvcc/saGs4aZc Xesg== X-Gm-Message-State: AOAM531tRIhgoAHJGf8WgPPqESHqZQV4jllk1dQzP52uObCHA4D0P8fU kz7sTFRGyW3WG/iAg+Z+9GA= X-Google-Smtp-Source: ABdhPJyHNTuRmnw+nn0H7O0SMK3Qr7n47wj3Pq2qXBvhAfn2me57Dwls3n42HjboEz/K2Ym8dTsnTw== X-Received: by 2002:a05:600c:4ba4:: with SMTP id e36mr13696202wmp.28.1623031103596; Sun, 06 Jun 2021 18:58:23 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id a12sm12404482wmj.36.2021.06.06.18.58.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Jun 2021 18:58:23 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Eli Zaretskii References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> <83tumk2n6c.fsf@gnu.org> From: Dmitry Gutov Message-ID: <1ec393d7-1d27-02b3-8b84-e7abb3415cc7@yandex.ru> Date: Mon, 7 Jun 2021 04:58:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <83tumk2n6c.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Version: 28.1 On 30.05.2021 19:36, Eli Zaretskii wrote: >> Cc: p.stephani2@gmail.com, larsi@gnus.org, 48471@debbugs.gnu.org, >> monnier@IRO.UMontreal.CA >> From: Paul Eggert >> Date: Sun, 30 May 2021 09:27:34 -07 [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.45 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dgutov[at]yandex.ru) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.45 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -0.0 NICE_REPLY_A Looks like a legit reply (A) 1.0 FREEMAIL_REPLY From and body contain different freemails X-Debbugs-Envelope-To: 48471-done Cc: p.stephani2@gmail.com, 48471-done@debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=c3=adn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Version: 28.1 On 30.05.2021 19:36, Eli Zaretskii wrote: >> Cc: p.stephani2@gmail.com, larsi@gnus.org, 48471@debbugs.gnu.org, >> monnier@IRO.UMontreal.CA >> From: Paul Eggert >> Date: Sun, 30 May 2021 09:27:34 -0700 >> >> On 5/29/21 11:31 PM, Eli Zaretskii wrote: >>> It's in Posix, but I'm not sure how portable it is in practice. Paul, >>> Andreas, do you happen to know? >> >> Although 'find -H' was not in 7th edition Unix, it was added reasonably >> soon after that and it should be in all currently-supported POSIXish >> platforms. > > Thanks, I guess it's safe to use it then. Thanks, pushed as commit 45bdc37c81. Philipp, Daniel, if you could verify that the code still works fine, and the updated (mostly reverted) tests still pass on your systems, that would be great. In the meantime, closing. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 04:52:14 2021 Received: (at 48471-done) by debbugs.gnu.org; 7 Jun 2021 08:52:14 +0000 Received: from localhost ([127.0.0.1]:54423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqAzS-0002dU-I1 for submit@debbugs.gnu.org; Mon, 07 Jun 2021 04:52:14 -0400 Received: from sonic301-21.consmr.mail.ir2.yahoo.com ([77.238.176.98]:40742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqAzN-0002cu-RA for 48471-done@debbugs.gnu.org; Mon, 07 Jun 2021 04:52:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1623055920; bh=5jsoH9BBwQkf+RWOPCdGN8GwfVn0PxQr8dySaEi1w8Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=m9nA9obIBaH6gxZtazhAmGUiXPPZFDLDZ0xy2qdyOPhALR+SnSQCd59f+ZmgmvzB8VlLcNT9xRCQ5MV0oXqHkuAeM2UpFhS8BLcEIDKeJMshSWabw3Tzw3W3ugD+9TMOFlYNoSWXud13Ql9aU3YDmEOaE1DoxEbjh3bjwnJpzT2MH5HHvIc/jIMOMRmq0yWWiV1RJA2rkRsMR4k43sV7XFb0GDadjQA4Td7+sy3QC0jz6VszzvuTIu9fh2G4rkRfz0W0X26djjcmpJjn/oGw5LBV27EC/Bfc4B/O4hkrqXVG9sQOEwZniIb976nS1RgaFfk3kILOXiPlcm5wsJmNbQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623055920; bh=5B1dDt7evufvAJbSCs1MDiG+LJRqr93ofANoLb5iQBJ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=puh6O2ikgl5B+FCYYrz49nzsdSmD3l+NSmtklMW+FwtCD4oDcBN1GpiGv79mIxOEdBy6iSYTkYZrX1lC+oUnGyz/uQ9v/FOSlUg6JamkY/xgYsUBohfucE2/Pz0XQZG+CxKe2JqGhqirdOEICQrPROb6yAGNB0f57fCyuryGT0n6tUbChN4tSE/IIyeGzJSNsBYaukOIpNSU7xEfm4+7noHjdxeUQTwI5BDkt/yM50ygkbE4A9R5NqUq92waDW0nw1suIMbKNxPX7nG8r7zfyHQwIYqpyIMfYg+ToM/uM0C111jL6/+yaA1vyxlBPNg4mg2pVzDXuWiTmk+g2h74vw== X-YMail-OSG: nSRTt_IVM1ngRCcgIJOfFznckIKldJrpvaCih5mRUdo4ZVkg9ykrLsjuCEm7HQk dSWWxsMRPlkrYTKVbA9w5oe6yRenD0aty3AhT8LS9zLQNqBVP7Mb2vjyhnfFG_RbYOroIXQnlTjZ LRKwrW2inxjo7NjOUWDT39HEfG5ac2V693cjqvTIRGnbV6ACgPbv3VOgxrg9Lnma6A4Vzp7Ss5mA Gv1txploxD8Xv2Xginni45nrMgnQN8TSfkeqzxCaDTjVkY6ngdM.SkrqgEo6cQ6eA8KwMBr8m1Zh ilbV.9IRIm.5d_yIDpNsP7C5YbsMiV2uLshWumYbTI5jEghpMQep_kHBWiFAk_XRfF0dopnFi06m GHdO_gQgOKukNe758cGx74V_nojslbu9NMz1j9dpcq3wiUYAkxgiV.EALGBY0TiHh4PfYTzpZiC7 2cfAq86Bv3e702rnZOKlNgB03l5P_pEMswSOr8tWle7A6xs7osuOcW5RhwP3On.vYYykKC41SBTL BmtDv488B6GJGPDihKrXsYyKZ6ad_rfvwxEiE7hL2rw_KQ._Qt.n4.ZQE9K.ii4kqpOUhR3H.UUl x_htPdbzvMGcWcj6LnkFjSwoej36YAS.YRntDhnYqFtr.zZI6D8QkW0FMsjy2FtUZ5VHmNEmGbxg FFSxZjWn3w4Nwv5FT17cAsIzb8LuZppp8hA3BU4oBadIHSPvlyOyTvPWt8ZfKjaeSwBcdonEDf29 6Zy3nwUQXzXQ8yoMRxmRzHGLa3HHGGRqWVnXdwps5XEreRGaIwTcUDQLmXpsuoHd9vvJkdhTIKu8 .G30b7cuNA8AFrW9f9GixFFHokzIP9_6qidesVocwIdWYtxyPDMZbxCQI6L7pMlasjb2H0JIsql9 6BVRjk4zgL3h1keySkR.YvbuPWBc.D6URX2UCFk8Xd.Nrf6DttshQMjqyXnRu59DTOyWRXDZ4t.2 z1R0CyfqZickeaZ9.zScomuLTLD_C2wNrSJgjaBYMFyYwsK6wqF.pmjGk_nhGNY5YFZZIf0Oa9XD BuVdjAyib.fa0GH06wlrMYlvnjdW59dMsWj7ZEh2G6KUhHK5.i0Vhf7fNj3T6RyS9GgJI74.6x.B o.2nn4mGAh2ewD8c_cH9YMxpkogFI8sMAC3EHuaILITHWS92DY1p8AdTwY0D_kBpqSJnWVZNHpo. I0MwHuFwFnIp1L1MFQ3bZZHTSd7.ZmqQYv_wpFTiYiMq0mR0vSCAE8qZ6DV0xxMBLevTMnzc_fBx 4O.ecV3tEe90Ey.3Bglc4c8bp9gxS3uC497wNgOMBxjl73kv6Wqcg5GoStwVycdIO5XyoB99JwAS 82455PvAs2pYz6BLNSvvJKy.rgYgnVGX40NqJ8l73MKfGPZ1.UhLQ3KmSKXno9FHQ0O1MvnT7LNE 15WKFw4TpsKR2Z912j_eqEwsuGFRoE6cDO1M9rf_nKYxkNiQ7tzHSa59Lt25mb9TXJTDjybGTU.w 7Ym_rvebg0DPp1kQ6oZ_mVT0tsnDInVbp3VhhmvFmwquIRaaKb.HsU1g_zkI7sEKOSlHVmYqeDI0 WmBlr3ytaqRCj7DWsphVAAPm0o0zyDqai.cfF5FKI7AFxUv12mnzs84trB90Ewsy60h0AmcdcWyh wasZxyjnYqBlPuvuGr7eOiQs4ppwzUf1aOoZsNQRqyoIk3.6.X_NksUa79alL._iPC4sxw6nJdue ctbdzcmnCgxqTELMQDcjcPtGzOLdiFR8_cc0K3yzF2NCsfDE6C6m.UgR04b6JUNARRtd1ENUnqHl tuwljqxn4T1wWfsXq.1YmfyToEDtEmxRu4ZiNcwiXS0fQ6LECaaqUpHY1gRb2dlmYEbasNXK7FTR QqjL9EHNaxedZq_hx7tV7uihm.7siy_PmIm14Xxz7XyQHyG.iw7Hz5KYoTZBvDknWJ0V90bnl5Ad YBnfda4xt_lu6ocNpoCAqokBodDb35npRNvDMCx1HbZHlR_dp7bD1RrXQxyaZJtbCWeFr952REm2 E4amr8AFxRCUrbHjVmHbN0pMvTFWDPMoKZ4Qb5oplNvaPLc74bpf5zWUeHYAb7SzI6a5R1xh1wWo u54278eNyP42HFh53agkjHMOfbyuW_ZSKUP0Wfolr0gzohE4yh8eQpT5B7Saxa5YtVCo83i0cSKZ cwBnqiMzamlg1UczXaxa.zX3FdmRk77UjLwhrWWmFYaZn3TgJ3MiKedWR5Zi1BVp7K0Jk29QuFV. kQhWzpluhbAqLANzyPTwKGHtGCfA7LxlCFpUvnE._RThvfsqqQrBL6tem54kyDjZaLKj.n0nbqJ. qkeYKZOlIaH6o4jYcJdQ85Djh8WYuv8WENu.bYIXoDT5YuH9X2ZZzHv9vh1HBT3tYOWM9Iwna5v4 XaH0Atf90Obx7yUEoRE.GXrLDBlVdFOL7hRgH2pzL8AtyRdEJYixOgXdwKfqlruj6awK7UzO_v.R ezC8_xGz3hE5qTGVxuxcydlCt2zxaMmazZrPiKyLmZTB2IDqjvp6zSq0try_aV.Mu7BxwkiHNu8X Fwt_7hwt8wrhRw_FxmmV4xZKkvHAoqLacv2Q6XaqQIZP6zbYW1R7JJrEvgylFdr5gIqgi4AmmA7w emZ_cF8LH0To_0DYwfAB2L_CsHfiObTarPKnfMLGiaiwRppTX7REpjeUtSpeCs.gdFPpjGDm6oms rHfnj7uLmI6i8RVRUGJJn1CJ.aoYdHbYC6J_HSZMbgikr2Pz2zO2p0JY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ir2.yahoo.com with HTTP; Mon, 7 Jun 2021 08:52:00 +0000 Received: by kubenode522.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b052e14c2abb81071dd430a02614739f; Mon, 07 Jun 2021 08:51:57 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: Dmitry Gutov Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> <83tumk2n6c.fsf@gnu.org> <1ec393d7-1d27-02b3-8b84-e7abb3415cc7@yandex.ru> Date: Mon, 07 Jun 2021 10:51:56 +0200 In-Reply-To: <1ec393d7-1d27-02b3-8b84-e7abb3415cc7@yandex.ru> (Dmitry Gutov's message of "Mon, 7 Jun 2021 04:58:21 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.18368 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 297 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48471-done Cc: Eli Zaretskii , p.stephani2@gmail.com, 48471-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Dmitry Gutov writes: > > Philipp, Daniel, if you could verify that the code still works fine, > and the updated (mostly reverted) tests still pass on your systems, > that would be great. > > In the meantime, closing. I confirm that the tests pass fine on macOS 11.4. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 14:48:44 2021 Received: (at 48471-done) by debbugs.gnu.org; 7 Jun 2021 18:48:44 +0000 Received: from localhost ([127.0.0.1]:56667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqKIi-0003gs-TW for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:48:44 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:34383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqKIh-0003gd-0v for 48471-done@debbugs.gnu.org; Mon, 07 Jun 2021 14:48:40 -0400 Received: by mail-wr1-f53.google.com with SMTP id q5so18791766wrm.1 for <48471-done@debbugs.gnu.org>; Mon, 07 Jun 2021 11:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LNjqqsqrO94k0x1yRrfP6MWK1xV0ilXxUrAgHOiiNjE=; b=DOY8CuZ6Co0ePVVtlwkisbjYXgRPwMqD0BW60fm+g5okppFcdD6iqBjoM2Y0gd+MSw FLnWYOFojJ1mW40JFsirb3QOGDUvvw1r8J/qzTEZzWJqLTuqxD/QfuUnjb8ZltcV78bc uvcV8DZrHxyie2YXYmyWNh8p1HVrKYo9wDp8UI33kQRZz5CDB/9fbI0JbJ9sCR+8r7CV spRq3K6HCFxeIchHLuLqXN5lfOMsualytnu5n6B+4/8Tzx5CkWjHR0fdpiRNZ6uEDxtP 8Fr6rgLdIQUeZvTJCLBjAUIG8aRWHDTUBw2FC3gvhDlbK8/zLY7w5nlwVrSCg9GHbrAN XNqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LNjqqsqrO94k0x1yRrfP6MWK1xV0ilXxUrAgHOiiNjE=; b=kRq+Qz8F8sI/9PQhqKAhP6xXd9FuFTV4Z2XHWQTwE1of8vtCfxCvXy1axb4GkqvRbb lFuXel+UlECogxgpk0ACVMB0TlN6X1vILcvMO+kL3HtO+41S0jfgUJ0l3Q7BGGz1+tjA fR5WgWmlfegZeqKmIIyX3rEynr/X7d1zAeqc7r9jZ4nmJrl2yfg3Me0fB6IkwZTneLrp Z8QYsrHYbVj7ZITAEJugOklR4Ra6M41OkCeTq0zPPtESfP7ZGVVQEa5dNlgsnsSjP2iC k2gBZk1W7BXUm3M6Wchp2H9juZMghYYhkVP+cd5fQdxfE8w5xOE6065LETNGy77LhlXp d0fA== X-Gm-Message-State: AOAM530XPsDtkdwZenQngFT6jjTaNhRAc7cnlmQsSM57mIjZxZzdyW9m 6JRvT0sk4n1NDowJV3C4rI8= X-Google-Smtp-Source: ABdhPJx/BZqyqxF3522EydFFl0E8AVOHezl5ECb03yx1G0D+y/idPdN2L0jz3hi/JKXNhJ6V5XDixg== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr18660355wru.192.1623091712966; Mon, 07 Jun 2021 11:48:32 -0700 (PDT) Received: from smtpclient.apple ([46.128.198.100]) by smtp.gmail.com with ESMTPSA id q3sm16898566wrr.43.2021.06.07.11.48.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jun 2021 11:48:32 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name From: Philipp In-Reply-To: <1ec393d7-1d27-02b3-8b84-e7abb3415cc7@yandex.ru> Date: Mon, 7 Jun 2021 20:48:30 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <23E314BB-DC04-4F19-AF9E-B2BB387379B4@gmail.com> References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> <83tumk2n6c.fsf@gnu.org> <1ec393d7-1d27-02b3-8b84-e7abb3415cc7@yandex.ru> To: Dmitry Gutov X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48471-done Cc: Eli Zaretskii , 48471-done@debbugs.gnu.org, =?utf-8?Q?Daniel_Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > Am 07.06.2021 um 03:58 schrieb Dmitry Gutov : >=20 > Version: 28.1 >=20 > On 30.05.2021 19:36, Eli Zaretskii wrote: >>> Cc: p.stephani2@gmail.com, larsi@gnus.org, 48471@debbugs.gnu.org, >>> monnier@IRO.UMontreal.CA >>> From: Paul Eggert >>> Date: Sun, 30 May 2021 09:27:34 -0700 >>>=20 >>> On 5/29/21 11:31 PM, Eli Zaretskii wrote: >>>> It's in Posix, but I'm not sure how portable it is in practice. = Paul, >>>> Andreas, do you happen to know? >>>=20 >>> Although 'find -H' was not in 7th edition Unix, it was added = reasonably >>> soon after that and it should be in all currently-supported POSIXish >>> platforms. >> Thanks, I guess it's safe to use it then. >=20 > Thanks, pushed as commit 45bdc37c81. >=20 > Philipp, Daniel, if you could verify that the code still works fine, = and the updated (mostly reverted) tests still pass on your systems, that = would be great. All XRef and project tests still pass on my machine, thanks.= From unknown Wed Jun 18 00:24:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Jul 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 18:13:10 2021 Received: (at control) by debbugs.gnu.org; 9 Oct 2021 22:13:11 +0000 Received: from localhost ([127.0.0.1]:54240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKac-00064i-Oz for submit@debbugs.gnu.org; Sat, 09 Oct 2021 18:13:10 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKab-00064T-3W for control@debbugs.gnu.org; Sat, 09 Oct 2021 18:13:09 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A7EF71600C2 for ; Sat, 9 Oct 2021 15:13:03 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id qFJbrsz0JE_V for ; Sat, 9 Oct 2021 15:13:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0CF281600C3 for ; Sat, 9 Oct 2021 15:13:03 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7RtFtG6MMpgY for ; Sat, 9 Oct 2021 15:13:02 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id DD6EB1600C2 for ; Sat, 9 Oct 2021 15:13:02 -0700 (PDT) To: control@debbugs.gnu.org From: Paul Eggert Subject: unarchive 48471 Organization: UCLA Computer Science Department Message-ID: <091fe749-6bad-1414-1861-533aba2f7f01@cs.ucla.edu> Date: Sat, 9 Oct 2021 15:13:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unarchive 48471 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 18:15:03 2021 Received: (at 48471) by debbugs.gnu.org; 9 Oct 2021 22:15:03 +0000 Received: from localhost ([127.0.0.1]:54245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKcR-00068f-2J for submit@debbugs.gnu.org; Sat, 09 Oct 2021 18:15:03 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKcP-00067I-Ig for 48471@debbugs.gnu.org; Sat, 09 Oct 2021 18:15:01 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4B2CC1600C2 for <48471@debbugs.gnu.org>; Sat, 9 Oct 2021 15:14:56 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0RmNngvwIV3r for <48471@debbugs.gnu.org>; Sat, 9 Oct 2021 15:14:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 552B71600C3 for <48471@debbugs.gnu.org>; Sat, 9 Oct 2021 15:14:55 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kbJn9tgCsiSa for <48471@debbugs.gnu.org>; Sat, 9 Oct 2021 15:14:55 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 163A41600C2 for <48471@debbugs.gnu.org>; Sat, 9 Oct 2021 15:14:55 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: 48471@debbugs.gnu.org References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <4ba96305-0689-f487-0548-7628392c45dc@cs.ucla.edu> Date: Sat, 9 Oct 2021 15:14:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 48471 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 10/9/21 2:53 PM, Dmitry Gutov wrote: > Hi Paul, >=20 > Hi Philipp, >=20 > On 30.05.2021 19:27, Paul Eggert wrote: >> On 5/29/21 11:31 PM, Eli Zaretskii wrote: >>> It's in Posix, but I'm not sure how portable it is in practice.=C2=A0= Paul, >>> Andreas, do you happen to know? >> >> Although 'find -H' was not in 7th edition Unix, it was added=20 >> reasonably soon after that and it should be in all currently-supported= =20 >> POSIXish platforms. >=20 > Any chance we could say the same about '-printf'? >=20 > It would help speed up our default 'project-files' implementation by=20 > about 10%. Unfortunately not. find -printf is not standardized by POSIX and is=20 missing on (for example) Solaris 10. Perhaps you could do a quick test of whether 'find -printf' works, and=20 use -printf only if it works. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 09 18:29:47 2021 Received: (at 48471) by debbugs.gnu.org; 9 Oct 2021 22:29:47 +0000 Received: from localhost ([127.0.0.1]:54262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKqh-0000Cm-0z for submit@debbugs.gnu.org; Sat, 09 Oct 2021 18:29:47 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:41926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZKqf-0000CZ-NC for 48471@debbugs.gnu.org; Sat, 09 Oct 2021 18:29:46 -0400 Received: by mail-lf1-f49.google.com with SMTP id j5so55267376lfg.8 for <48471@debbugs.gnu.org>; Sat, 09 Oct 2021 15:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SN3XjBMdCTSv8Efgd9aAL8lMSFvOWI4Ng6YJtwMNkIM=; b=BkN6ubGzw1J6ZG2SfRQ+1oEgNgdVIVJa86AeslCUcscvv/7edn54Yi0VD6qZ5539gE G/Mw3ApR1d6DTq7j2yUGZ9/M1mKTQbgq509+cXI3ZkYnWYoa+XwE/UhSEdpcesKXFHAl 7plJi0/rZaCv5Uocg/BagIks3thQpAE1Cdd1NgtRE/s1RFo7+sLaC4Lk1lw2lbgDm1hz mDd973zei82Z7bl46wu6evkYT79OTmMGZyCrj2U0B9JkC39TME8ipuvyYNojPZTTs3jD +DoQR4TmkjgCgfKW9jw5uBYkKGesgo6R5HSbOKtXzuMU/CmuWQAD8/E3AwhZM2QFtoHV BiXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SN3XjBMdCTSv8Efgd9aAL8lMSFvOWI4Ng6YJtwMNkIM=; b=UXPgRCBEUqjlMy/dBWrPURRrGo0h1OpLrTsGEavCK9gLZSoppuHAbFTDsApPCChvnv vVRhfP7CCZ9nS08CcyB5OwieYV53BKzSD/hdZ791QugYTZB9wHoCXAJRrpNXedvktVq8 Pq6gw4apP2pqOFpJ2nOwkO4RWyQ9fyYZYM4jjmQJXC4/ZrCLomqrltz7R8Az88xfh7OB Pmgyj/csIDXmnvY3Ha1ABrC+lQad2v82UhL3PSihe/dBrh5PqJCUuCC7dsDEV4MVr6WM 7t0vIvoJEqzTUAE0OrieiRcgiMWNQk8DR2/CZmOMAgdf7cCZOTTZ26u7aCHpAK9RL4zU DWpQ== X-Gm-Message-State: AOAM531TX3f3n4T27mks5InrZ3U1+aUdMmzlK6Bbl74czVtaz4zcImgn nHL78sOxXc/p0ZDO7amzB98= X-Google-Smtp-Source: ABdhPJyfzFmEKhvzpW2qECEfQXhZMtqh9MeFUsS2oIlL4pSut7Jh8G/kIyyRUMUx90KfP5TDWxn+qg== X-Received: by 2002:a05:6512:3f0e:: with SMTP id y14mr18885145lfa.5.1633818579611; Sat, 09 Oct 2021 15:29:39 -0700 (PDT) Received: from [192.168.0.103] ([5.18.248.29]) by smtp.googlemail.com with ESMTPSA id v78sm307207lfa.144.2021.10.09.15.29.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Oct 2021 15:29:38 -0700 (PDT) Subject: Re: bug#48471: 28.0.50; Incorrect handling of `project-ignores' on macOS (BSD find?) if project root is a directory name To: Paul Eggert , Eli Zaretskii , Andreas Schwab References: <7f9e984c-bea9-f55f-526a-680a9bb3f66b@yandex.ru> <53E1AC7F-1D49-4845-8DF6-4CB24BC15E6A@gmail.com> <92AAB1AE-0D8C-4C2B-99E9-E790F4BE5330@gmail.com> <79c2002a-e404-3837-f2d8-c760ed48cdc0@yandex.ru> <3B1E8678-E36E-4A30-A067-D9A5C3E7711A@gmail.com> <7ea80286-b72c-7318-4b68-f10f62007907@yandex.ru> <83r1ho4tr7.fsf@gnu.org> <4de8fa95-e8f3-d07f-2f0c-8b06feff7190@cs.ucla.edu> From: Dmitry Gutov Message-ID: Date: Sun, 10 Oct 2021 01:29:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <4de8fa95-e8f3-d07f-2f0c-8b06feff7190@cs.ucla.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 48471 Cc: p.stephani2@gmail.com, 48471@debbugs.gnu.org, larsi@gnus.org, monnier@IRO.UMontreal.CA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 10.10.2021 01:07, Paul Eggert wrote: > On 10/9/21 2:53 PM, Dmitry Gutov wrote: >> Any chance we could say the same about '-printf'? > > Unfortunately not. find -printf is not standardized by POSIX and is > missing on (for example) Solaris 10. I see, thank you. > Perhaps you could do a quick test of whether 'find -printf' works, and > use -printf only if it works. Yeah, that's an option. But a meaningful test whether 'find' works seems a bit less obvious to design than the existing tests in grep.el I could otherwise adapt. Something to consider for future developments in Emacs 29 anyway. From unknown Wed Jun 18 00:24:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Nov 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator