Re: Bash instead of ksh

2024-04-03 Thread jslee
On Wed, 3 Apr 2024, at 14:08, Nick Holland wrote: > Why do you think that's an "excellent idea" -- something you would > encourage people to do? What is it that you see bash doing so much > better than stock pdksh? presumably those tens of thousands of lines of completely unvetted custom tab

Re: Bash instead of ksh

2024-04-02 Thread Sean Kamath
> On Apr 2, 2024, at 20:26, Brian Conway wrote: > > On Tue, Apr 2, 2024, at 10:08 PM, Nick Holland wrote: >> What is it that you see bash doing so much better than stock pdksh? > > Multiline command editing. > > (I don't use bash, but it would be a nice feature.) I dunno. It’s a mixed bag.

Re: Bash instead of ksh

2024-04-02 Thread Brian Conway
On Tue, Apr 2, 2024, at 10:08 PM, Nick Holland wrote: > What is it that you see bash doing so much better than stock pdksh? Multiline command editing. (I don't use bash, but it would be a nice feature.) Brian

Re: Bash instead of ksh

2024-04-02 Thread Nick Holland
On 4/2/24 15:34, Steve Litt wrote: ... Does "general shell" mean the interactive shell you use? If so, I think that's an excellent idea for non-root accounts. Ok, I'll bite... Why do you think that's an "excellent idea" -- something you would encourage people to do? What is it that you see

Re: Bash instead of ksh

2024-04-02 Thread Jeremy Mates
On 2024-04-02 15:34:56 -0400, Steve Litt wrote: > 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

Re: Bash instead of ksh

2024-04-02 Thread Steve Litt
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

Re: Bash instead of ksh

2024-04-02 Thread Страхиња Радић
On 24/04/03 12:25AM, jslee wrote: > Thirdly, I recommend avoiding using /bin/sh in the #! line if you intend > things to be portable because: > > * on Linux it might be bash or dash or busybox, depending on distribution > * on macOS it might be bash or zsh or dash, depending on the state of a

Re: Bash instead of ksh

2024-04-02 Thread jslee
On Tue, 2 Apr 2024, at 03:24, Karel Lucas wrote: > 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. You're getting plenty of good advice here :-) I have some advice also, hopefully good advice: Firstly, use shellcheck

Re: Bash instead of ksh

2024-04-02 Thread Stuart Henderson
On 2024-04-01, Nick Holland wrote: > 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

Re: Bash instead of ksh

2024-04-01 Thread John McCue
On Mon, Apr 01, 2024 at 06:24:06PM +0200, 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. I would follow the suggestion in Nick Holland's email. I have one more thing to add. Using pdksh, ksh(1),

Re: Bash instead of ksh

2024-04-01 Thread Nick Holland
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

Re: Bash instead of ksh

2024-04-01 Thread prx
Run "chsh" Le 1 avril 2024 18:24:06 GMT+02:00, Karel Lucas a écrit : >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. >

Re: Bash instead of ksh

2024-04-01 Thread Kirill A . Korinsky
On Mon, 01 Apr 2024 18:24:06 +0200, Karel Lucas wrote: > > 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. > https://man.openbsd.org/chsh -- wbr, Kirill

Bash instead of ksh

2024-04-01 Thread Karel Lucas
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.