From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 890031F406; Sun, 12 Nov 2023 13:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1699795456; bh=+HfpSHPEIsoUNZDBrWZ0KH0OMMS6lI2YENAJlmnmHvw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=3krf0SzQT830joC8GbpYaYCcr8kEcsrJMGVkZNBy6w0kFwhzPHqmW75pUZK5S5arp BqsGiLMqG+/k+491/p/6bSpOLz2WgZ4yC4B3B4xlYvMAhTpNp7hVf3da/5vjGb+qMk ktQDs62MirHeQC8QzeUKKWoWgPyPotw6rXE3Zjok= Date: Sun, 12 Nov 2023 13:24:16 +0000 From: Eric Wong To: Henrik Grimler Cc: meta@public-inbox.org Subject: Re: [Bug] lei: extra quotes inserted into query with AND/OR Message-ID: <20231112132416.M369316@dcvr> References: <20231111224411.GA620644@grimlerstat.localdomain> <20231112001050.M917867@dcvr> <20231112082356.GA3149@grimlerstat.localdomain> <20231112090249.M736442@dcvr> <20231112115916.GA6228@grimlerstat.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231112115916.GA6228@grimlerstat.localdomain> List-Id: Henrik Grimler wrote: > Aha, I see, thanks for the explanation! Without the single quotes, and > after escaping parantheses, lei works as expected. Good to know. > For the record, I read some old posts where query was '' quoted, and > thought it was the way to do it (for example > https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started > and https://josefbacik.github.io/kernel/2021/10/18/lei-and-b4.html) I'm not sure, I'm a little surprised that they do, but it may be the preprocessing that the hacky approxidate wrapper (for rt:1.month.ago..) somehow smooths things over a bit... I'm sleepy now and head hurts from trying to figure out some -cindex bugs :x, so maybe I missed some things. I do recommend --stdin for more complex queries, and I just posted a patch which should let it work better for terminals (not just pipes/regular files): https://public-inbox.org/meta/20231112131233.718614-1-e@80x24.org/