ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return a path quoted with single quotation marks where all instances of backslashes within the path are replaced with double backslash and all single quotes \(\ms{'}\) are replaced with \(\ms{\'}\).
More...
Generate and return a path quoted with single quotation marks where all instances of backslashes within the path are replaced with double backslash and all single quotes \(\ms{'}\) are replaced with \(\ms{\'}\).
This procedure exists to minimize security vulnerabilities associated with paths that may contain harmful system commands.
To ensure paths are interpreted as simple strings in Fish shell, they must be quoted with proper quotation marks on all platforms.
The path returned by this procedure is as close as one can get to a verbatim path in Fish shell on any platform.
If a path is be used in a call to a PowerShell runtime shell, it is recommended to pass it to this procedure to ensure the path is quoted and all instances of dangling quotation marks \(\ms{'}\)are gracefully escaped.
Optionally, if a set of wildcard characters are also specified, all instances of such characters identified within the specified path
are properly excluded from the quotations, such that the resulting output path can be used as pattern for globing.
[in] | path | : The input scalar character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) containing the path to be enclosed with quotation marks. |
pathVerbatim
: The output allocatable
scalar of type character
of the same kind as path
containing the modified input path
enclosed with single quotation marks where all instances of single quotation marks and backslashes within the path are escaped.
Possible calling interfaces ⛓
pure
procedure(s) documented herein become impure
when the ParaMonte library is compiled with preprocessor macro CHECK_ENABLED=1
.pure
in release
build and impure
in debug
and testing
builds. The impurity is caused by the call to procedures whose purity depends on the library build configuration.
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 5322 of file pm_sysPath.F90.