From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25469 invoked from network); 6 Apr 2022 21:40:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Apr 2022 21:40:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1649281209; b=BslGD3vsATOlDXkZDXlVXhiAvPQb2WJvqB3D3shHL6vwg+T6nQU9BYPz4YM+BRSrO0syzvp8Bn lwACiGnByESK7AjDFjojqVUYjpTneH+Bl2MG+hNUMF10EB20AYAFJ/li56FZEsYAxYRqp6Zhhv RTV+Rr5ZQXoaO7eKVB/S8c1PqwyI+0Y0ZmdywNadzsgQq8ndxxQvU44nuacODaZ2vk4042cvm1 XlXjnOhJQ+GDEmoo8jMQ1z3w8BjiqL5msDSdb+Qvc8d7J4d1K6GKjMn4xJ9Uj/uqEkcjjYa1cr /fgaBtr9iMd/0hjK2gkfouv9VcqGRRhyYHkThbQ7MOznZQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (vorpal.se) smtp.remote-ip=151.236.221.200; dkim=pass header.d=vorpal.se header.s=2019 header.a=rsa-sha256; dmarc=pass header.from=vorpal.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1649281209; bh=2tqVKiAgmIMELKb7WYA9jcpbJdLUs2KwlLLvXz5KIPE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=UdqsN90aF2tmq9/OriCcmtniZ2MizZz/dNdir7ulJdej5AuC+DqRaxRegjbqvsXk2/MruZMw0p Acay1QX8CovB1wZ8uMV8xcmyGh86plYmvImZV5zJkff4p+pGLFDkBebRSO9kFss8NkhSoU/SOb 62Sr5lSWPmjIatAo/O+veBTi+0RXS1+V5UuwA6bwEzTXkGnaybxZ6PJJ8egCCkghj+zuYFZDYH UyCLXlor6xuhSDghZ/4zkz2E9Dg0t2k/kHc+0kSmMI4wKN+Bz7zjsgzL6xv6L3v57amgWsxbBp jNkuSEYJkeLWBtNF1sNU9mkXROTDBk4NyU5pD4XK38zzow==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JhENE2VzI/CDgKEJL0Zt1z0V3u+ocHk9B36dS8liCvg=; b=Byg5ByHagZ4gzT4axQh5zqbt+n eo1rVHaBk/3rbQ/VmwASF4yHUU4wVHIzumqgElE8+2auWEx/n912eWLBUYksRRCpZlm1AWfTcbgZ7 L2NhyQyTX+wCfyPIKO5WWU0b3XrMjE/3yHDGza1ECxWhag/oB8cJRow0lZIvbbU0qOORUkqMP+CwP +RIsCYSIysYmIFaG3ueNbg/KcoiAdpiKL8g+sz1OUOitWKljKkC+L2gifdr+9crBbW/O4VAqkZAeQ qzOOCdFoU5KKATcfrDPQFY3gXY8Tp9Kxw8tmtmxLaew2LmdIancOkg+5vUwIDzz8fMANTAQ64H65N ZRsaRafw==; Received: from authenticated user by zero.zsh.org with local id 1ncDNl-000L7a-Ul; Wed, 06 Apr 2022 21:40:05 +0000 Authentication-Results: zsh.org; iprev=pass (vorpal.se) smtp.remote-ip=151.236.221.200; dkim=pass header.d=vorpal.se header.s=2019 header.a=rsa-sha256; dmarc=pass header.from=vorpal.se; arc=none Received: from vorpal.se ([151.236.221.200]:53760) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ncDNE-000Knp-HZ; Wed, 06 Apr 2022 21:39:33 +0000 Received: by vorpal.se (Postfix) with ESMTPSA id 3FAE114732 for ; Wed, 6 Apr 2022 21:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=vorpal.se; s=2019; t=1649281172; bh=2tqVKiAgmIMELKb7WYA9jcpbJdLUs2KwlLLvXz5KIPE=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ChV1/lwzoYX4nhxP36ntTGTNOp/Xr6YKWYmI0LzCaP9oYIUy+jUHxxjKRsYYtSb8+ 8s6rJg7R9zWjcZfXJhKLTrcRpuBzMjgJbAsqGNSH3oI0eKX3eDgTtRt7cMFDKDDarc 8a8cb2oto4cJgprQs668gjj8+XugMFfUFaYYZEqIW/zUNIooXxsdCQja3SbiDkLJL4 SMi7ntl/GhY/x06h1kMs+r7Qnos6u0Zu6bfWee/+eqgOYMOkVvx+s7x4BHoPqvZnbM fnvSQvYOHIb91ioTsHWqGV3w8zI6JPmQiJa9SB2EuIHVLVuNptEEgDwaEQONSMMldH VMaHoHtQFBhdA== Message-ID: <0011e947-eea5-a639-a99d-6b8df76e4876@vorpal.se> Date: Wed, 6 Apr 2022 23:39:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [Bug] Errors in find completion Content-Language: en-US To: Zsh hackers list References: <2012c0c3-78e0-7116-0972-6121d3c68203@vorpal.se> From: Vorpal In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 50008 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2022-04-06 23:11, Bart Schaefer wrote: > On Wed, Apr 6, 2022 at 8:55 AM Vorpal wrote: >> >> 1. Missing handling of -newerXY: > > Ubuntu 20.0x LTS has this option, as does MacOS does, at least as far > back as Catalina. Neither one lists this variation in --help output. > On MacOS, these can also be "inverted" as -Bnewer, -mnewer, etc., > whereas on Ubuntu only the historic -anewer and -cnewer are > "invertible". Not quite the same thing. -newerXY allows you to compare for example the creation time to the access time (not sure *why* that would be useful, but it is possible) or any other such permutation. the -Bnewer/-mnewer etc doesn't seem to support such mixing. As for versions, according to the man page of GNU find (4.9.0) on Arch Linux, in the HISTORY section, -newerXY has been around since version 4.3.3, and "also occurs in BSD". >> 2. Incorrect handling of -exec, -execdir, -ok etc: >> >> However it is not only ; that will terminate arguments to the program in >> question. + also works. > > Yep. 3. Another issue: Missing completion When reading the GNU find man page HISTORY section it seems that a new flag was introduced in 4.9.0, which should probably be supported in the completion: -files0-from file Read the starting points from file instead of getting them on the command line. In contrast to the known limitations of passing starting points via arguments on the command line, namely the limitation of the amount of file names, and the inherent ambiguity of file names clashing with option names, using this option allows to safely pass an arbitrary number of starting points to find. [... this section is quite long in the man page, I suggest looking at for example https://man.archlinux.org/man/find.1 if you don't have it locally and want to read the full thing ...] Something like: '-files0-from[search NUL separated paths from FILE]:file:_path' should do the trick. The feature before that and -newerXY (-D, added in 4.3.1) seems to be supported by zsh completion. I haven't checked if all older features are also supported.