From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=DflSZq4t; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id CB9215A0262 for ; Sat, 04 Jul 2026 17:27:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783178842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1OmwpCfg90e0RL0IwKXeaf+YuDVHXFGjUkQoxRjNdL8=; b=DflSZq4t7aFYl3S/P1vfrWHe74l+ujwFdbnPJeO4NGVON8K6ujqypjs0gcBnhVDQ5KaDYi +H2A8A+G5Fx0hJRlSwXY3sdbLTxXSSlz7hCfegGwwUeiNGl80fkY+qEBgkRadaG45z6X6v co20b4uBuZaaujVivHA311qwk/DQC0s= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-465-woHsgg8wPaOPyBATgUxV3g-1; Sat, 04 Jul 2026 11:27:21 -0400 X-MC-Unique: woHsgg8wPaOPyBATgUxV3g-1 X-Mimecast-MFC-AGG-ID: woHsgg8wPaOPyBATgUxV3g_1783178840 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-472c330e555so673604f8f.1 for ; Sat, 04 Jul 2026 08:27:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783178840; x=1783783640; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1OmwpCfg90e0RL0IwKXeaf+YuDVHXFGjUkQoxRjNdL8=; b=g0kVrmABvmKW9tJMc5gi46Ild2y6mzoAPqAr9BIpW32XzbE3Zg/4kxXdc/4u0X4Uvy sJrGsilCw8QOEe6FNK4tu/4zcA8uq/+6McFYSpXrPGSEb6WfCDFz9+zSnxWTN9PWCWKj JMjgv8Nd5J9JveV5kz7buqSvVvqrZYYtO2BPSOZy22a2ROqfsyBGUQ8gb5atdS3f0Q5D MpkxMVp9pEIsQ6MfxkZFxs2q9wXhkHG8WxUnlTFzjcl2EM7ajA5kuzwCH45GasLrzOlq DIT8vypRVeOzRugAPDwUDqBROj344LBvSeL3OSPJwJPrQong5yoxuKAMuRbppWlidiHy BEZw== X-Gm-Message-State: AOJu0Yy3ErcYrUlNVijcSDb88n//TETG6zGff37nAQsNnGTtgHZM4h4E U/4WkArH2xyIu2TjiS2H9/S17G/358mo3AB3Rj3v7TW+315NyixJWEIlGMrItnfCw3NzqMFW0JB t2fBmq5i/aY0zC7u8IeP/UyZ1IUBRhwQZQ2n6Mc9ts/Fvt+9PkV0+EA== X-Gm-Gg: AfdE7ck3p8rKUpCaX6NvWs16jqFHPmw0wdbssUiAZYrx77yGzeHyBj/Vj1UPkSCzice 9fD+QAH74CD/AlkveHJU8aCBXz1AK/NgpGYQHbwbiYX8QfYrJdVAGFZ5n+xJIAEhwVv8DpRJtoK V/kC3DwKUpcq6zkXDNeGGjhP/novCF/5bDknTx2bozFhagNM8d8+8KpAWvLzR+8pl65jMn/9DJ5 7VKYxgEJSH6wQBt9WyZM1g5le3+ORUOcdJxkutx+ZE3J6yYKOXG8xFr1701Z+n/MxKLi4L92p2K XYxA2NvFga3hDLx4UQFhtlkt7OQVVORUGaDJGNVyZ8VxMk22RsXEAh4cOBH3mGZEcJ+v52725lu W6qnvXYUP5p6xDxQj7yLXQQ== X-Received: by 2002:a05:600c:5790:b0:493:aa0a:45b0 with SMTP id 5b1f17b1804b1-493d11f3656mr29742925e9.23.1783178839902; Sat, 04 Jul 2026 08:27:19 -0700 (PDT) X-Received: by 2002:a05:600c:5790:b0:493:aa0a:45b0 with SMTP id 5b1f17b1804b1-493d11f3656mr29742655e9.23.1783178839440; Sat, 04 Jul 2026 08:27:19 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493c637bc21sm380315415e9.7.2026.07.04.08.27.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2026 08:27:17 -0700 (PDT) From: Stefano Brivio To: David Gibson Subject: Re: [PATCH v5 00/13] Rework option parsing in preparation for destination remapping Message-ID: <20260704172716.2fc15b76@elisabeth> In-Reply-To: <20260703035445.888394-1-david@gibson.dropbear.id.au> References: <20260703035445.888394-1-david@gibson.dropbear.id.au> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Sat, 04 Jul 2026 17:27:17 +0200 (CEST) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: L3uCB7I6SDR4wjXY2Kcn7tIkSxieFvGrgw590AE6qn4_1783178840 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: QJLX3BTZ42AFQYMKCYE256EBOEY2TWNB X-Message-ID-Hash: QJLX3BTZ42AFQYMKCYE256EBOEY2TWNB X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 3 Jul 2026 13:54:32 +1000 David Gibson wrote: > This was... a bit of a nightmare. It took way too long and went down > a bunch of blind alleys. I'm not sure how much I like the final > result: it's pleasingly terse in some cases, but in others it feels > dangerously subtle, requiring a pretty careful understanding of the > sequencing rules of C's &&, || and , operators. > > That said, while I was at many points ready to pack it in and hack my > around the problems limiting the parsing for destination remapping, I > couldn't really think of feasible way to do that either. So, here we > are. > > v5: > * Improvements to manpages and usage in 12/13 > * No other changes Applied. -- Stefano