Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fr3pm-00060I-Be for pgsql-general@arkaria.postgresql.org; Sat, 18 Aug 2018 16:12:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fr3pk-0006Yu-Hz for pgsql-general@arkaria.postgresql.org; Sat, 18 Aug 2018 16:12:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fr3pk-0006Ym-AJ for pgsql-general@lists.postgresql.org; Sat, 18 Aug 2018 16:12:12 +0000 Received: from cowfish.bmrb.wisc.edu ([144.92.167.220] helo=mail.bmrb.wisc.edu) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fr3pg-00013J-3k for pgsql-general@lists.postgresql.org; Sat, 18 Aug 2018 16:12:11 +0000 Received: from XPS.dmaziuk.charter.net (24-240-32-199.dhcp.mdsn.wi.charter.com [24.240.32.199]) (Authenticated sender: dmaziuk) by mail.bmrb.wisc.edu (Postfix) with ESMTPSA id A696AFA09FB for ; Sat, 18 Aug 2018 11:12:03 -0500 (CDT) Date: Sat, 18 Aug 2018 11:12:13 -0500 From: Dmitri Maziuk To: pgsql-general@lists.postgresql.org Subject: Re: vPgSql Message-Id: <20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu> In-Reply-To: <87pnygcx78.fsf@gmail.com> References: <29c462e6-4eff-e697-48c0-ccd556b1e02c@yandex.ru> <87pnygcx78.fsf@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, 18 Aug 2018 10:52:59 +1000 Tim Cross wrote: > I think pretty much all *nix systems put core shells like sh, bash, zsh > etc in /bin (as it is guaranteed to be available immediately at boot, while /usr is > not - it could be a separate partition which isn't available until later > in the boot process). They do but at least solaris circa v.9 and now redhat have replaced /bin with a symlink to /usr/bin. Whether you get /bin/sh or /usr/bin/sh out of `which` depends purely on their order in your $PATH. > A way to avoid platform differences is to use /usr/bin/env e.g. > > #!/usr/bin/env bash Except now you can't pass arguments to your bash. You can't win. Although in the case of shell scripts you can get rid of all bash'isms and call '/bin/sh' -- Dmitri Maziuk