Shell

D'Arcy Cain darcy at druid.net
Tue Jun 30 13:46:17 UTC 2020


On 2020-06-30 09:33, Donald Wilde wrote:
> I would add only one suggestion here, and that would be to consider
> using bash-static and parking it in a place where it is available in
> the event of an excruciating mishap.

I use bash for my user and root shell.  To deal with mishaps I set my shell
in passwd to sh and create a small .profile which mainly just has this line:

bash && exit 0

That way if bash is fine I run it and immediately exit when it does.  If
bash is missing or can't run then the exit is skipped and I am in sh so that
I can fix things.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy at VybeNetworks.com, VoIP: sip:darcy at druid.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200630/5bba8a33/attachment.sig>


More information about the freebsd-questions mailing list