Prompt

Collection of functions for the underlying system.

PathToSystemPath

Converts a given path to a system-specific representation. This can be important when running on hybrid systems. In Cygwin for instance, one can execute Windows programs that do not understand UNIx path. This function can convert the paths.

The system is taken from CONFIG_MAP["SYSTEM"]. If no special path conversion is implemented for the system, the original path is returned.

Arguments Return (print)

$1: path to convert

converted or original path

VARIABLE=$(PathToSystemPath "path")

Currently supported conversions are:

  • Cygwin: uses cygpath -m for the conversion