PTC MKS Toolkit Knowledge Base

Product:MKS Toolkit (All)
Keywords:KornShell, backslash
Category:Utilities/Knowledge Base

How can I work with programs that require a backslash (\) in paths without leaving the PCT MKS Toolkit shells?

Single backslashes are considered escape characters. Most programs outside of the Toolkit will expect backslashes in paths passed to them as arguments. When running these programs from any of the PTC MKS Toolkit shells you must use two backslashes to get one literal backslash.

program -d c:\\directory

If you need to pipe output from a Toolkit command to the standard input of a program expecting backslashes you can use the tr command to substitute forward slashes for backslashes:

toolkit_program | tr '/' '\' | other_program