From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id WOT/BPhSYmaIowAAe85BDQ:P1 (envelope-from ) for ; Fri, 07 Jun 2024 02:23:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WOT/BPhSYmaIowAAe85BDQ (envelope-from ) for ; Fri, 07 Jun 2024 02:23:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=20240212 header.b=BsX9WWHC; 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"; dmarc=pass (policy=reject) header.from=7d.nz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717719799; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=C2dJeV9y7RAV6RFAS6Uw5SqtOgjysbD847RA8C9pZac=; b=NZg/zYQfYMaxiTdFidKLNwlvD4OcfIjU/f8jcpy9UZ78hKxAdk9RwArvQJ08/qMBgAufZx je3YNHCGJZKUL5L5k0uk8FujA+Si1iwhJe7yIFlCiWrbC2WHEC0xB3y0mwrOYXbOUY6I/k 1NhB0oc1UTSQFGrKfMlnMTsiBs8ZqUBmJdxkTkvPENmE0YAcgOVoylhtROLJNWaNwZo3m3 Lv2ufO7plQKhXa5wmlkXDtqRy8ZbNSLfVSywJyq1ZRVOSdqNDpFRJk6wTXxirtg4eprZeq hZdzQpx7yv3wR09j6l/Glq8quAMQDlVPuUjucdtVob6zfaEbxx3luAbVyNbXWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=20240212 header.b=BsX9WWHC; 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"; dmarc=pass (policy=reject) header.from=7d.nz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717719799; a=rsa-sha256; cv=none; b=qVsyxkPXLSomd4ZbyVAaQ7qD7nEHwTlCZeeeI0J1m0SBJ4bxBaxxVOgeYL+CPxXylwBuax ZOZnyQsF1F6C48IjqEA+K2wHt3NmcNv6JQdoI67rjs9k502ikevd9pmNZEqcw9nq1rLYz/ U3b7hdcVgzQOh7WuqQc9Q4XpaKKHZtAe7diqdo9hWVpw4YbU9MRY9POerzknz4Gib7S67d VWOMYNCNCd5EXXIm6f2qoAppCDhynt0rg9FMldkdIwNFsoYggy8epbQPgDY0WHLjUKoew4 v7pNg/HpNIDFTxY3DxhiW7HdjRDrCjkM+DjB+iFHsXsJrYnRnpEuIVFnGxYFCQ== 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 BB6AA549E1 for ; Fri, 7 Jun 2024 02:23:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFNNA-0000Aj-Qd; Thu, 06 Jun 2024 20:22:24 -0400 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 1sFNN9-0000AQ-8S for emacs-orgmode@gnu.org; Thu, 06 Jun 2024 20:22:23 -0400 Received: from smtp-190f.mail.infomaniak.ch ([2001:1600:7:10::190f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFNN6-0006eo-7l for emacs-orgmode@gnu.org; Thu, 06 Jun 2024 20:22:23 -0400 Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VwMMm08yzzQNW; Fri, 7 Jun 2024 02:22:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=7d.nz; s=20240212; t=1717719731; bh=C2dJeV9y7RAV6RFAS6Uw5SqtOgjysbD847RA8C9pZac=; h=Date:Subject:To:References:From:In-Reply-To:From; b=BsX9WWHCKcp75u8D5KniKGbhBFzH5NUoQjOWVEfONZSpHNAPzUCRELBvCRmkNYne6 BSZ+ADLVKcbfBfdAaCNQTK86xmH6OZbJc65GebL+Y5CPQf1Pttv1E+VbUeueSbzA39 c34Auyfkno0hDB9OD+sg94+q+5oEcFo7ztcUOfcyicu4JHZbvvHHyo/lUMmOv1ENcP qmSy2liRogrDQHiFmNgSkkNE/SWe5In0HKvE1kDMZ9NMJURFWvZnrC8hNUvth2uQoh nqLR6HCkYq8Mpm9s6TMECMu2NrSh/AmYEpLfp6L2yf+fHH2wpz4nKsXwamTRiwBg2G Fx2dN4Oqf+5Lg== Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4VwMMl3Zk2zg3C; Fri, 7 Jun 2024 02:22:11 +0200 (CEST) Message-ID: Date: Fri, 7 Jun 2024 02:20:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] ob-sql should escape the password [9.7.3 (9.7.3-2f1844 @ /home/andrea/.emacs.d/elpa/org-9.7.3/)] To: Andrea , emacs-orgmode@gnu.org References: From: Phil Content-Language: fr In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Infomaniak-Routing: alpha Received-SPF: pass client-ip=2001:1600:7:10::190f; envelope-from=pe@7d.nz; helo=smtp-190f.mail.infomaniak.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.45 X-Spam-Score: -7.45 X-Migadu-Queue-Id: BB6AA549E1 X-Migadu-Scanner: mx13.migadu.com X-TUID: DHHNwinKEAb5 * [2024-06-07 00:58] Andrea: > org-babel-execute:sql. This function extracts > the password to connect to your database of choice as dbpassword. > It then uses it like this: > (format "PGPASSWORD=%s " dbpassword) > If the password contains an & character, the execution of a block fails. > I solved like this: > (format "PGPASSWORD='%s' " dbpassword) shell-quote-argument is designed for this case. Phil