Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).
 
Options:
RSS cloud
Jump to:

Problem with script functionality on Ubuntu Linux and MacOS

6 of 390 articles shown, currently no other people reading this forum.
photo
From: Akhil E.
Date: Fri 17th Apr 2020, 2:24am
Actions: 
        Login-to-reply

 

Hey Chris,

I developed my code on Ubuntu Linux 18.04 LTS with bash version 4.4.20(1) as I was 
not able to find out switches I require in some commands on MacOS (mine is not 
running the latest OS). 

And obviously, the shell scripts I developed (with man pages from Ubuntu) are working 
perfectly fine on Ubuntu but not on macOS. 

And I am not really sure about the script's compatibility with RedHat. Since the labs 
use RedHat and I am using Ubuntu, is the compatibility of the scripts with RedHat 
something I need to worry about?


Thanks.

Problem with script functionality on Ubuntu Linux and MacOS

photo
From: Christopher M.
Date: Fri 17th Apr 2020, 4:16am
Actions: 
        Login-to-reply

 

"Akhil Eaga" <22*5*5*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hey Chris,
> 
> I developed my code on Ubuntu Linux 18.04 LTS with bash version 4.4.20(1) as I was 
> not able to find out switches I require in some commands on MacOS (mine is not 
> running the latest OS). 
> 
> And obviously, the shell scripts I developed (with man pages from Ubuntu) are working 
> perfectly fine on Ubuntu but not on macOS. 


Do not be concerned about this;  most of us have lost (easy) access to the CSSE lab machines 
running RedHat,  so we'll be marking on Ubuntu (or macOS), and will be looking for 'obvious' 
problems.

Ah!! what a year so far.

Problem with script functionality on Ubuntu Linux and MacOS

photo
From: Akhil E.  O.P.
Date: Fri 17th Apr 2020, 6:39pm
Actions: 
        Login-to-reply

 

Thanks Chris !!

Problem with script functionality on Ubuntu Linux and MacOS

photo
From: David M.
Date: Sun 19th Apr 2020, 12:46pm
Actions: 
        Login-to-reply

 

Upgrade bash: <https://itnext.io/upgrading-bash-on-macos-7138bd1066ba?gi=bbe7358c1dba>

Problem with script functionality on Ubuntu Linux and MacOS

photo
From: Akhil E.  O.P.
Date: Mon 20th Apr 2020, 2:17am
Actions: 
        Login-to-reply

 

Thanks, David.

Problem with script functionality on Ubuntu Linux and MacOS

photo
From: David M.
Date: Mon 20th Apr 2020, 2:19pm
Actions: 
        Login-to-reply

 

This is the most amusing part of the article:

"The reason that Apple includes such an old version of Bash in its operating system has to do with licensing. Since version 4.0 (successor of 3.2), Bash uses the GNU General Public License v3 (GPLv3), which Apple does not (want to) support. You can find some discussions about this here and here. Version 3.2 of GNU Bash is the last version with GPLv2, which Apple accepts, and so it sticks with it.

"This means that the entire world (e.g. Linux) proceeds with new versions of Bash, whereas macOS users are stuck with an old version from a decade ago."
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  2:34pm Sep 18 2020