Use of special characters

Infrastructure Management supports the use of most special characters, because they can be used to import arbitrary information from files and error messages. However, special characters must be used correctly; otherwise, errors can occur. Problems occur if the character has special meaning in the shell being used, for example, the exclamation mark (!). In such instances, avoid the use of the character.

For example, in UNIX, the following will not work because the exclamation mark  is a special, reserved character in C shell:
pw user edit MAJOR "hello this is a test!"

However, the special character will work with the usage of a backslash before the special character:
pw user edit MAJOR "hello this is a test\!"

Was this page helpful? Yes No Submitting... Thank you

Comments