Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhK5j-0000YV-TH for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2016 17:23:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bhK5j-00051j-60 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Sep 2016 17:23:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhK5i-000506-06 for pgsql-hackers@postgresql.org; Tue, 06 Sep 2016 17:23:22 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhK5b-0007WP-9V for pgsql-hackers@postgresql.org; Tue, 06 Sep 2016 17:23:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0EA83203F4; Tue, 6 Sep 2016 13:23:14 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 06 Sep 2016 13:23:14 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=GVecdiBudztAgYShtxE1cVhHWvM=; b=aWeWn XhhdVjID81rbTEWS1d3KjCzCEGZ1kKvp/RPxzeJCbvkQqVDzk+pTHKXczbtNVz0B 8pNILlQboVGGHsDLjlIW2YiXGT6ouyhJ+Z8V/TwsdplyywRcZYleeub9XPzWCePb OetBb7C6Jpxaxy0WPHDvk5JNhQmfI2NUlX6uxU= X-Sasl-enc: BKt2D/2NpSpcw5OIKy1oIR7A/2B7k3sLVe3py5PM3jTR 1473182593 Received: from intern.anarazel.de (unknown [199.87.86.247]) by mail.messagingengine.com (Postfix) with ESMTPA id A51E6F29CC; Tue, 6 Sep 2016 13:23:13 -0400 (EDT) Date: Tue, 6 Sep 2016 10:23:11 -0700 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers Subject: Re: Re: [COMMITTERS] pgsql: Make initdb's suggested "pg_ctl start" command line more reliabl Message-ID: <20160906172311.ngvezt24jak4tlgb@alap3.anarazel.de> References: <26516.1473181731@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26516.1473181731@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2016-09-06 13:08:51 -0400, Tom Lane wrote: > Dash is considered a character that needs quoting. It might be possible > to avoid that if we could be certain that appendShellString's output would > never be placed in a spot where it could be taken for a switch, but that > seems like a large assumption to me. Or maybe we could treat it as > forcing quotes only if it starts the string; but I don't personally care > enough to write the code for that. Feel free if you want to. But quotes are interpreted by the shell, not by the called program. So I don't think putting --whatnot in quotes changes anything here? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers