Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5VCE-0003MS-6B for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 17:05:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5VCB-0003jh-W2 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 17:05:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5VCB-0003iW-JP for pgsql-hackers@lists.postgresql.org; Wed, 14 Dec 2022 17:05:27 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5VC8-0003Fq-UI for pgsql-hackers@postgresql.org; Wed, 14 Dec 2022 17:05:26 +0000 Received: by mail-io1-xd33.google.com with SMTP id g20so3738086iob.2 for ; Wed, 14 Dec 2022 09:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=lEYmF3NeNCaBOhG/pvUbXBUprOEyMC6bJPYFKZNxbTg=; b=KRjUPc1O/hTl/VU3jxXNURV761qDTJp5m2pTq3Kl1/berQW97sLgQq5LEVO7AW+Uuq 55FljOmd6dViUme9YecJi3BktXEYoHd0dc5qVZ0OEazB9CKpMeSXJB1Wc01ac4UIaMb8 9JlLuNBTp4EANa4WvSo0gMR1vEIXvcvir/conKPPWR07JHuw7TiMZzE2CtCeV1vlcHOB YaiJdNpH7qsrLWQZxwbTAK2d2RxQkeIaKr393kamJYeSwZTekCYJDfnxKU4gIBCBJVFG D73sLGClKsck0TQ1i/PpZhepGPgL8kYlihsH7SfPkUTtVMXG9+p2l5p3k/tZzszU5Uwr bgIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lEYmF3NeNCaBOhG/pvUbXBUprOEyMC6bJPYFKZNxbTg=; b=ltRZC48kCjCDbq3FlKmA5B4yfN7hvzZHfr9mqU/DIq/uVp2OXj6SUHVW5Ujwq5f2lO qUWcFb7CGxDF95MTptbM5k3szcdsaSsDqpxUQmB3SR3b8So6un821ELS0DAnGRNMhFz+ RAe7FRgxXxNChJG4UXhdCdcA04Uw4shUn1zdmegrA//ll4kQzCPg1B38S1cpM5y6IAfP 2+2QOiAuJNTxECpmegv0rI49ekSIwbt5cKxhopKFB7UpV7OwRsDR1cdix+5iihK2TdnB mDG8xAWCuPQSVFCbq5bXDBB9FLEKFPNahj2CtOrI9+rtJotihoI0Gls+QZDQFfAs3VlD MGmQ== X-Gm-Message-State: ANoB5pmpbLGWnAvxgrhk99tSpAp4YONE5kE+uuzQAu4/uVyhLzEaZ0zR 2uRKHserZEVnnDQLLGGCFdM7VQ== X-Google-Smtp-Source: AA0mqf4XzFKeA+LWHfU5/5ni+xfr7EJZHzOOmvQjwoXH0WdW+LkyYL7SK5aBZpuVE+yooRbHeE8O6A== X-Received: by 2002:a6b:6b1a:0:b0:6e3:1588:83d9 with SMTP id g26-20020a6b6b1a000000b006e3158883d9mr5613188ioc.0.1671037522717; Wed, 14 Dec 2022 09:05:22 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d5-20020a0566022d4500b006c75c702342sm107195iow.14.2022.12.14.09.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 09:05:22 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 38E808007F5; Wed, 14 Dec 2022 11:05:21 -0600 (CST) Date: Wed, 14 Dec 2022 11:05:21 -0600 From: Justin Pryzby To: Peter Eisentraut Cc: pgsql-hackers@postgresql.org Subject: Re: Common function for percent placeholder replacement Message-ID: <20221214170521.GT27893@telsasoft.com> References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Dec 14, 2022 at 08:31:02AM +0100, Peter Eisentraut wrote: > + return replace_percent_placeholders(base_command, "df", (const char *[]){target_detail, filename}); This is a "compound literal", which I gather is required by C99. But I don't think that's currently being exercised, so I wonder if it's going to break some BF members. -- Justin