Re: Bash 4 vs Bash 5

2021-09-19 Thread Andrew Pam via luv-main
On 19/9/21 3:25 pm, Alexar Pendashteh via luv-main wrote: 2. Is it important or worth making the script compatible with bash v4? Is there a reason you need the features of bash v5? I prefer to make my bash scripts as portable as possible. I recommend installing the "shellcheck" package and

Re: Bash 4 vs Bash 5

2021-09-19 Thread Morrie Wyatt via luv-main
Hi Alexar. On 19/09/2021 3:25 pm, Alexar Pendashteh via luv-main wrote: I have been using a bash script happily for quite a while. Today, for the first time I faced an error. I noticed the server is running *GNU bash, version 4.2.46(2)-release* Whereas I have always been on version 5. I

Re: Bash 4 vs Bash 5

2021-09-19 Thread Russell Coker via luv-main
On Sunday, 19 September 2021 15:25:48 AEST Alexar Pendashteh via luv-main wrote: > I noticed the server is running *GNU bash, version 4.2.46(2)-release* > Whereas I have always been on version 5. > > I don't have the access to upgrade the version. So, the questions are: > > 1. Is there a way to

Bash 4 vs Bash 5

2021-09-18 Thread Alexar Pendashteh via luv-main
I have been using a bash script happily for quite a while. Today, for the first time I faced an error. I noticed the server is running *GNU bash, version 4.2.46(2)-release* Whereas I have always been on version 5. I don't have the access to upgrade the version. So, the questions are: 1. Is