Karel Lucas said on Mon, 1 Apr 2024 18:24:06 +0200
>Hi all,
>
>Instead of ksh I want to use bash as a general shell. But how can I
>set it up that way? Bash is already installed.
>
Does "general shell" mean the interactive shell you use? If so, I think
that's an excellent idea for non-root accounts.
If you mean a shell with which to run shellscripts, I wouldn't do that.
Inside bash is a big old messy attack surface. There was a bash exploit
several years ago (was it heartbleed?) that caused me to change all
shellscript shebangs to #!/bin/sh.
By the way, the last 9 years I've used Void Linux 98% of the time.
For all new construction, I'm using #!/bin/ksh . I like it better. I
know exactly what I'm dealing with, and it's top notch.
You're currently using ksh on OpenBSD. Void Linux has two ksh packages
that are supposed to be compatible with BSD:
[*] loksh-7.3_1 Linux port of OpenBSD's ksh
[-] oksh-7.4_1 Portable OpenBSD ksh, based on the
Public Domain Korn Shell
Other Linux distros offer other ksh equivalencies. In my opinion any of
them is better than bash.
SteveT
Steve Litt
Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21