pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitri Maziuk <dmaziuk@bmrb.wisc.edu>
To: pgsql-general@lists.postgresql.org
Subject: Re: vPgSql
Date: Sat, 18 Aug 2018 11:12:13 -0500
Message-ID: <20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu> (raw)
In-Reply-To: <87pnygcx78.fsf@gmail.com>
References: <29c462e6-4eff-e697-48c0-ccd556b1e02c@yandex.ru>
	<CAAfz9KNZtX0C4zwtE23suhTwS+co+Ne8Rf4XZzAR3SFQwO4Ujg@mail.gmail.com>
	<d542aebd18707d47de500ffc4db6c61dd2e70e42.camel@yandex.ru>
	<87pnygcx78.fsf@gmail.com>

On Sat, 18 Aug 2018 10:52:59 +1000
Tim Cross <theophilusx@gmail.com> 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 <dmaziuk@bmrb.wisc.edu>




view thread (8+ messages)

Message-ID: <20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu>
Permalink:  ../20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu/
Also on:    postgresql.org/message-id/20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: dmaziuk@bmrb.wisc.edu
  Subject: Re: vPgSql
  In-Reply-To: <20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu>
  References: <29c462e6-4eff-e697-48c0-ccd556b1e02c@yandex.ru> <CAAfz9KNZtX0C4zwtE23suhTwS+co+Ne8Rf4XZzAR3SFQwO4Ujg@mail.gmail.com> <d542aebd18707d47de500ffc4db6c61dd2e70e42.camel@yandex.ru> <87pnygcx78.fsf@gmail.com> <20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox