[svlug] Location of bash on different Linuxes
xtifr at dsp.net
Thu Aug 17 12:42:02 PDT 2000
On Thu, Aug 17, 2000 at 12:34:33PM -0700, Rafael wrote:
> As far as I know /bin/sh is on all Unix systems.
> Linux has a link from /bin/bash to /bin/sh.
No. Most Linux systems do by default, but few require that it be
maintained that way. Some even have ash as /bin/sh.
JC's question was not about /bin/sh (he knows that may not be bash).
It was about /bin/bash. And as far as I know, all distros do use
/bin/bash (if they have bash installed at all), but I've only looked
at a small handful of the distros out there.
> If you write a script then #!/bin/sh should work in
> most (Unix) cases if not all of them.
If you limit yourself to the features available in bourne shell. JC
wants to use bash-specific extensions.
I think that using #!/bin/bash is probably reasonable. The number of
distros that don't have that is certainly small, maybe nil. And if
there are any, they must be used to it causing problems.
But I'm sure JC would like to hear that from someone who has looked at
more distros than I have. :-)
Chris Waters xtifr at dsp.net | I have a truly elegant proof of the
or xtifr at debian.org | above, but it is too long to fit into
| this .signature file.
More information about the svlug