D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG]Re: writing shell scripts

 

> This is also good for NixOS, which I believe you use, right Dan?
That's correct but there's ways around it by pretending to be LSB by
having an option to emulate a LSB structure via virtual filesystems,
which is one good option. Another is running through things like bwrap
and steam-run, so even crazy things like /usr/bin/bash or /bin/python
would work as well.

In any case, the default bash-like for shell scripts should normally
be just /bin/sh which is usually on Linux systems just a disguised
bash in bourne mode (and it's rare to find any scripts that absolutely
require themselves to be bash), but does allow BSDs and things like a
minimal install of Alpine (ash) or containers (sh/ash) to run your
script, just because /bin/sh is very much more usually a link to
whatever compatible shell exists.

Good evening.
-- 
The Mailing List for the Devon & Cornwall LUG
FAQ: https://www.dcglug.org.uk/faq/