Run the installer? You mean like this?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Reticent

Run the installer? You mean like this?

Unread post by Reticent » 2014-04-27, 22:28

Like in 'buntu, where "bash" means run-a-shell-script, open a terminal where I unpack pminstaller.sh and then run

Code: Select all

sudo bash pminstaller.sh
:?: (I didn't see an example on the SourceForge wiki ...)

access2godzilla

Re: Run the installer? You mean like this?

Unread post by access2godzilla » 2014-04-28, 02:31

You can run it in many ways:
- With most file managers, you can double click it.
- From the terminal, use "./pminstaller.sh" (the script will automatically elevate with the help of sudo.)
- With sudo, use "sudo ./pminstaller.sh" (your method does work in this case, but it's not preferable to do that everywhere).
- If you don't have sudo (or not allowed to run it) use "su -c ./pminstaller.sh".

BTW, bash != run a shell script, it means run the bash shell (there are others like sh, ash, zsh, csh and korn). bash foo.sh means run a shell script in bash, overriding the preference of the shell the script wants to use.

Conan Kudo

Re: Run the installer? You mean like this?

Unread post by Conan Kudo » 2014-05-04, 13:02

Most shell scripts would override the shell using the shebang clause at the beginning of the script though, wouldn't it? Ordinarily, the user need not manually override the used shell.

access2godzilla

Re: Run the installer? You mean like this?

Unread post by access2godzilla » 2014-05-04, 14:43

Not actually overridden -- when a shell script, marked as executable is invoked like a program, the program specified on the #! line is invoked with the path of the shell script as its argument.

When a shell script is invoked with <shellname> <filename> through the shell, the #! line is specially treated (usually as a comment, most shells as well as python etc. but as an ignored preprocessor directive as in the case of Bellard's tcc.)