Specifying input strings that contain blank spaces or quotation marks
You must follow certain rules when you specify an input string that has blanks or quotation marks.
Follow these rules when you specify an input string that has blank spaces or quotation marks:
- If the input string has one or more spaces, enclose the string with either single or double quotation marks. You can use single or double quotation marks, as long as they match.
- If the input string has a single quotation mark, enclose the string
within double quotation marks, as in this example:
-description="Annual backup of the accounting department's monthly reports" - If the input string has a double quotation mark, enclose the string
within single quotation marks, as in this example:
-description='New translations of "The Odyssey" and "The Iliad"' - If the input string has spaces and quotation marks, enclose the string in quotation marks. The outer quotation marks must not be the same as the quotation marks within the string.
Restriction: An input string that has single and double
quotation marks is not a valid input string.
The following rules apply to these types of data:
- Fully qualified names
- The description that you specify in the archive command
- Any value for an option value where the character string can include spaces or quotation marks
Important: You cannot use escape characters in input strings.
Escape characters are treated the same as any other characters. Here
are some examples where escape characters are not recognized:
- If the character string is in an option file
- If the character string is in a list file
- If the character string is entered in interactive mode