From: | Dmitri Maziuk <dmaziuk(at)bmrb(dot)wisc(dot)edu> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: vPgSql |
Date: | 2018-08-18 16:12:13 |
Message-ID: | 20180818111213.cfec8a256edcf281c4dfa43b@bmrb.wisc.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, 18 Aug 2018 10:52:59 +1000
Tim Cross <theophilusx(at)gmail(dot)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(at)bmrb(dot)wisc(dot)edu>
From | Date | Subject | |
---|---|---|---|
Next Message | Ravi Krishna | 2018-08-18 16:25:14 | Re: CTE with JOIN of two tables is much faster than a regular query |
Previous Message | Prajilal KP | 2018-08-18 16:07:51 | Kerala Flood Relief - request to donate |