rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

Mac OS maxima launchers fail for non-bash shells #613

Open rtoy opened 4 months ago

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-03 02:10:57 Created by michal59 on 2017-09-29 10:39:07 Original: https://sourceforge.net/p/maxima/bugs/3334


Maxima launchers which come with the Mac OS installer fail if the user's shell is not 'bash-like'. They all open terminal and execute 'export .... ; maxima' command line which does not work if one uses csh-type shell.

rtoy commented 4 months ago

Imported from SourceForge on 2024-07-03 02:10:58 Created by tomio-arisaka on 2017-10-04 15:26:51 Original: https://sourceforge.net/p/maxima/bugs/3334/#a979


I think that you mean the launcher is included in a binary of Maxima-5.40.0 on macOS. ("Maxima-5.40.0-macOS.dmg" or "Maxima-5.40.0-VTK-macOS.dmg") But I don't know which version of macOS you are using.

The launcher of Maxima-5.40.0 has to inherit shell variables from Terminal.app. The default shell in Mac OS X 10.3 and later is bash, an sh-compatible shell. So that, the launcher is made for bash.

I am not familiar with csh. But if you would like to use the launcher, then you have to modify the source code.

(0) Drag the source code icon from the compressed disc image (Launchers/sources/*) to another place of your filesystem. (1) Double-click the source code icon (e.g. Rmaxima.scpt), then it is opened with "Script Editor.app". (2) Modify the argument of "do script". (Change the bash script to a csh script) (3) Compile the modified source code.

Of course, if you would like to use shell scripts, then you don't have to use the launcher which is written in AppleScript.