On 4/1/24 12:24, Karel Lucas wrote:
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.


Easy to do, as several have explained how.
...BUT...
I'd really suggest not doing that.

If you are writing a script that requires bash, just set your #! line
properly.  (presumably #!/usr/local/bin/bash)

If you really need bash for a user shell at a particular moment, invoke
it at a command line.

The pdksh that comes with OpenBSD by default is very good and supports
most of the "fancy" stuff that bash does, but is stock with the system,
so it has no dependencies, no issues at upgrade, and is quite lean
compared to bash.  I'd suggest that administrative accounts be kept as
close to stock as you can.  Now, if you have a non-administrative user
who only knows Linux...ok, sure, change their default shell.  But as a
system administrator, you will generally find benefit in knowing the
native tools.  During the week for a living, I administer Linux machines,
and use bash.  In evenings and weekends, I work with OpenBSD and pdksh.
I really have no issue switching between the two.

Nick.

Reply via email to