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 1oPq00-0006bW-Nu for pgsql-docs@arkaria.postgresql.org; Sun, 21 Aug 2022 18:48:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oPpzz-0007Dh-Ey for pgsql-docs@arkaria.postgresql.org; Sun, 21 Aug 2022 18:48:39 +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 1oPpzz-0007DY-7z for pgsql-docs@lists.postgresql.org; Sun, 21 Aug 2022 18:48:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPpzx-0006OJ-7T for pgsql-docs@lists.postgresql.org; Sun, 21 Aug 2022 18:48:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 27LImY2U4169602; Sun, 21 Aug 2022 14:48:34 -0400 From: Tom Lane To: Daniel Gustafsson cc: eric.mutta@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Typo in description of PROGRAM parameter for the COPY command In-reply-to: <1DC6647E-45CF-4ECD-BAB5-0CC0626AF121@yesql.se> References: <166104548566.654.11680826843612576896@wrigleys.postgresql.org> <1DC6647E-45CF-4ECD-BAB5-0CC0626AF121@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Sun, 21 Aug 2022 20:29:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4169600.1661107714.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 21 Aug 2022 14:48:34 -0400 Message-ID: <4169601.1661107714@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson writes: > On 21 Aug 2022, at 03:31, PG Doc comments form = wrote: >> ...so if you need to pass any arguments to shell command that come >> from an untrusted source... >> = >> The "to shell command that come" part should be changed so it either re= ads >> like this: >> = >> ...so if you need to pass any arguments to a shell command that comes >> from an untrusted source... >> = >> ...or it reads like this: >> = >> ...so if you need to pass any arguments to shell commands that come >> from an untrusted source... > Not being a native english speaker, but since we're already referring to= "the > command" in the sentence it seems more natural to me to change to "the s= hell > command". Hmm ... to me the main problem with this fragment is that it's not entirely clear whether we're speaking of untrusted arguments or an untrusted shell command, ie which one is the antecedent of "that". The proposed variants seem to make that worse not better. I suggest rephrasing like ... so if you need to include any shell command arguments that come from an untrusted source, you must ... Or maybe even better, just drop "shell command" from that phrase altogether. Probably also s/passing/including/ in the next sentence. regards, tom lane