From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6MrxN1mZLGcvPwEAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Nov 2024 10:41:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6MrxN1mZLGcvPwEAqHPOHw (envelope-from ) for ; Thu, 07 Nov 2024 11:41:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b=l5EtF97y; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730976089; a=rsa-sha256; cv=none; b=EerJ05hadf6suQWFK24LL4/cujKhNHsLq3iNY3E3rV6+QkvBgPnw/eA5VuBgIIXY7Vtd8M JJMu7xOZxl3SZHasu6yLmZG6HHR7+CFS3VINAS+FZ3aHjDuRQXDCxYVphpJJ+vUMiGn78a J5EiApt6KeVhQ5Yk/CxvVzAvxN+V8R7aV4ujYykd9nbUkEGV0O81NE3o+bySLt4YrDZyTW sjXDC9b22nJSjveENqGLTw70Bn4AAl5ppInEIzQ9gnuuhw+LYbd2wVJaaxvrd/57t94LPI q8zJWI5cNrB9EY7urCiRM6Zq2WKa/BxnHXKjQr+dG355g1Er1vaKrfXbj4K1yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rensoliemans.nl header.s=soverin header.b=l5EtF97y; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730976089; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KYbeWluwBDn43KK33XOfB0+qvshCOKgBBTLgjV6qZVc=; b=UdyXBlTECspRVzsvR9Q77E9phR8gQ8YsrvhVy51oqykn/luiqKGWZS4s8L0oPXduU9Zvzq mbzqi9/0RNwNJ996t5l21RSAviarjGE90wfKUdcCN54z2sFSiy5NxfeS//xGmgKwaJ0f3e ovSmCCG79XPEFIevQxSDPtbma18ekvfBhsGuOSXwDZE9hZwsnQ9NMgzsVG9Q9D0n6IbYzu iP4DfW+SyB5jqjRM7bzPLbAik0DxzT+AYWNaVSw93aQob/GXYIYVkDJcTA56hvSEB/ZzTl nGT3amPjpkgU3/ZM2TBQV4lpCYp3PQBGQerklza+XkugEoDjibsdAw+DM9277Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 577DD8A3D8 for ; Thu, 07 Nov 2024 11:41:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8zwM-0002u7-I9; Thu, 07 Nov 2024 05:40:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8zwK-0002to-HP for emacs-orgmode@gnu.org; Thu, 07 Nov 2024 05:40:36 -0500 Received: from outbound.soverin.net ([2a10:de80:1:4091:b9e9:2212:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8zwH-0005O5-SV for emacs-orgmode@gnu.org; Thu, 07 Nov 2024 05:40:35 -0500 Received: from smtp.soverin.net (unknown [10.10.4.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4XkdrM15CSz16g; Thu, 7 Nov 2024 10:40:19 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4XkdrL2rsdzL7; Thu, 7 Nov 2024 10:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rensoliemans.nl; s=soverin; t=1730976019; bh=GPTWikWw5TWPehx0SojgVYRDXiVBjvXYkZ1xBKGQnYo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=l5EtF97ypAwN0cEH/E7YJFvEURlznsXcGk0UifVCuDO97fEnE/X80B1yCORw6MnD7 1SUv7OL02l37YwLRhzRPsuXglJE9rW6/6aHlRz4m7KqwmXve42PkS4AIlxC6PYWxDz ie6Tv5k560w+JhvowW/LnGowQBU31/08JoWi2volhIyO+rbFZgfwF/QzcU5EbP+uEk hp5WNOfm5zyOKJxQJg8hxyt++lliYXjDf79CKlU9Ch8QVnUMvp9BBXjxpjW+V/CQRu cNM1DYl2IfHWtyy22dHQ2qaY/ohA7qRfL34XHVWfUbN4tpVSgnrx264r2bqNV15Rz/ fe+EwfYE11KrA== From: Rens Oliemans To: Xi Lu , emacs-orgmode@gnu.org Cc: Xi Lu Subject: Re: [PATCH] Fix `grep' command to handle filenames starting with '-'. In-Reply-To: References: Date: Thu, 07 Nov 2024 11:40:17 +0100 Message-ID: <874j4j8gz2.fsf@rensoliemans.nl> MIME-Version: 1.0 Content-Type: text/plain X-Spampanel-Class: ham Received-SPF: pass client-ip=2a10:de80:1:4091:b9e9:2212:0:1; envelope-from=hallo@rensoliemans.nl; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.61 X-Spam-Score: 0.61 X-Migadu-Queue-Id: 577DD8A3D8 X-Migadu-Scanner: mx10.migadu.com X-TUID: 6xzFhrsGng/P Xi Lu writes: > - (grep (format "grep -rnH -e '%s' *" ',region-string))] > + (grep (format "grep -rnH -e '%s' ./*" ',region-string))] This works so my comment might be a bit too bikesheddy, but another method would be to append the argument `--` after the list of options to ensure that the rest of the arguments aren't parsed as options; perhaps that's preferred.