ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This is the shellis_type class for generating objects with logical
components to determine the runtime shell type of the operating system.
More...
Public Attributes | |
logical(LK) | ash = .false._LK |
The scalar logical value indicating whether the shell is Unix Almquist shell (dash). More... | |
logical(LK) | bash = .false._LK |
The scalar logical value indicating whether the shell is Unix GNU Bourne-Again shell (Bash). More... | |
logical(LK) | cmd = .false._LK |
The scalar logical value indicating whether the shell is Windows Command Prompt (CMD). More... | |
logical(LK) | csh = .false._LK |
The scalar logical value indicating whether the shell is Unix C shell (csh). More... | |
logical(LK) | dash = .false._LK |
The scalar logical value indicating whether the shell is Unix Debian Almquist shell (dash). More... | |
logical(LK) | fish = .false._LK |
The scalar logical value indicating whether the shell is Unix Friendly Interactive SHell (fish). More... | |
logical(LK) | ksh = .false._LK |
The scalar logical value indicating whether the shell is Unix Korn shell (ksh). More... | |
logical(LK) | posix = .false._LK |
The scalar logical value indicating whether the shell is POSIX-compliant (that is, Unix-like, partially or fully POSIX-compliant, e.g., pwsh (PowerShell Core), sh, bash, csh, zsh, fish, ...). More... | |
logical(LK) | powershell = .false._LK |
The scalar logical value indicating whether the shell is the Microsoft PowerShell (pwsh). More... | |
logical(LK) | sh = .false._LK |
The scalar logical value indicating whether the shell is Unix Bourne shell (sh). More... | |
logical(LK) | tcsh = .false._LK |
The scalar logical value indicating whether the shell is Unix tcsh shell (tcsh). More... | |
logical(LK) | windows = .false._LK |
The scalar logical value indicating whether the shell is Windows-compliant (e.g., pwsh on Windows (Windows PowerShell), CMD). More... | |
logical(LK) | zsh = .false._LK |
The scalar logical value indicating whether the shell is Unix Z shell (zsh). More... | |
logical(LK) | yash = .false._LK |
The scalar logical value indicating whether the shell is Unix Yet Another Shell (yash). More... | |
This is the shellis_type class for generating objects with logical
components to determine the runtime shell type of the operating system.
When an object of this type is generated, a single object component corresponding to runtime shell name is set to .true.
.
If the runtime shell name is determined to be sh
, additional attempt will be made to resolve the actual runtime shell name.
This is because sh
is frequently a symlink with an actual target (for example dash
on Ubuntu).
Additionally, the posix
component of the object is set to .true.
if the runtime shell name corresponds to,
Normally (, but not necessarily), the runtime operating system for the above shells is Unix (either macOS or variants of linux).
As of July 2022, the above shells are known to have the highest level of compliance with the POSIX standard.
Alternatively, the windows
component of the object is set to .true.
if the runtime shell corresponds to,
As of July 2022, the above shells are exclusively available on Windows operating systems.
As of July 2022, shells that adhere to neither Windows nor POSIX conventions are the following,
[out] | failed | : The output scalar logical of default kind LK that is .true. if and only if an error occurs while inferring the system shell name.(optional. If missing and a runtime error occurs, the program will halt by calling error stop .) |
[in,out] | errmsg | : The input/output scalar character of default kind SK of arbitrary length type parameter.If an error occurs, errmsg will be set to a descriptive message about the nature of the runtime error.A length of LEN_IOMSG characters is likely sufficient to capture most error messages in full. (optional. It can be present only if failed is also present. If missing, no error message will be output.) |
shell
: The output scalar object of type shellis_type containing the specifics of the runtime system shell.
Possible calling interfaces ⛓
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 196 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::ash = .false._LK |
The scalar logical
value indicating whether the shell is Unix Almquist shell (dash).
Definition at line 197 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::bash = .false._LK |
The scalar logical
value indicating whether the shell is Unix GNU Bourne-Again shell (Bash).
Definition at line 198 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::cmd = .false._LK |
The scalar logical
value indicating whether the shell is Windows Command Prompt (CMD).
Definition at line 199 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::csh = .false._LK |
The scalar logical
value indicating whether the shell is Unix C shell (csh).
Definition at line 200 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::dash = .false._LK |
The scalar logical
value indicating whether the shell is Unix Debian Almquist shell (dash).
Definition at line 201 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::fish = .false._LK |
The scalar logical
value indicating whether the shell is Unix Friendly Interactive SHell (fish).
Definition at line 202 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::ksh = .false._LK |
The scalar logical
value indicating whether the shell is Unix Korn shell (ksh).
Definition at line 203 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::posix = .false._LK |
The scalar logical
value indicating whether the shell is POSIX-compliant (that is, Unix-like, partially or fully POSIX-compliant, e.g., pwsh (PowerShell Core), sh, bash, csh, zsh, fish, ...).
Definition at line 204 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::powershell = .false._LK |
The scalar logical
value indicating whether the shell is the Microsoft PowerShell (pwsh).
Definition at line 205 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::sh = .false._LK |
The scalar logical
value indicating whether the shell is Unix Bourne shell (sh).
sh
) is a programming language described by the POSIX standard.sh
is a specification, not an implementation, /bin/sh
is a symlink (or a hard link) to an actual implementation on most POSIX systems.sh = .true.
implies that the runtime shell most likely points to a POSIX-compliant shell. To find out the target of sh
, use the command file -h /bin/sh
.Definition at line 206 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::tcsh = .false._LK |
The scalar logical
value indicating whether the shell is Unix tcsh
shell (tcsh).
Definition at line 211 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::windows = .false._LK |
The scalar logical
value indicating whether the shell is Windows-compliant (e.g., pwsh on Windows (Windows PowerShell), CMD).
Definition at line 212 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::yash = .false._LK |
The scalar logical
value indicating whether the shell is Unix Yet Another Shell (yash).
Definition at line 214 of file pm_sysShell.F90.
logical(LK) pm_sysShell::shellis_type::zsh = .false._LK |
The scalar logical
value indicating whether the shell is Unix Z shell (zsh).
Definition at line 213 of file pm_sysShell.F90.