From cde6067cae4bbb67e1e43f69c9c6773d2e1e20a3 Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Sun, 20 Feb 2011 02:58:11 +0800 Subject: [PATCH] minor changes on user doc --- doc_src/index.hdr.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index 84dc0a034..4f773e23e 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -135,6 +135,10 @@ these characters, so called escape sequences are provided. These are: - '\\\<', escapes the less than character - '\\\>', escapes the more than character - '\\^', escapes the circumflex character +- '\\&', escapes the ampersand character +- '\\;', escapes the semicolon character +- '\\"', escapes the quote character +- '\\'', escapes the apostrophe character - '\\xxx', where xx is a hexadecimal number, escapes the ascii character with the specified value. For example, \\x9 is the tab character. - '\\Xxx', where xx is a hexadecimal number, escapes a byte of data with the specified value. If you are using a mutibyte encoding, this can be used to enter invalid strings. Only use this if you know what you are doing. - '\\ooo', where ooo is an octal number, escapes the ascii character with the specified value. For example, \\011 is the tab character. @@ -620,9 +624,8 @@ The {$USER}san syntax might need a bit of an elaboration. Posix shells allow you to specify a variable name using '$VARNAME' or '${VARNAME}'. Fish supports the former, and has no support whatsoever for the latter or anything like it. So what is '{$VARNAME}' then? -Well, '{WHATEVER}' is brace expansion, identical -to that supported by e.g. bash. 'a{b,c}d' -> 'abd acd' works -both in bash and on fish. So '{$VARNAME}' is a bracket-expansion with +Well, '{WHATEVER}' is brace expansion, e.g. 'a{b,c}d' -> 'abd acd'. +So '{$VARNAME}' is a bracket-expansion with only a single element, i.e. it becomes expanded to '$VARNAME', which will be variable expanded to the value of the variable 'VARNAME'. So you might think that the brackets don't actually do anything, and that @@ -684,7 +687,7 @@ The \% (percent) character at the beginning of a parameter followed by a string is expanded into a process id. The following expansions are performed: -- If the string is the entire word \c self, the shells pid is the result +- If the string is the entire word \c self, the shells pid is the result. - Otherwise, if the string is the id of a job, the result is the process group id of the job. - Otherwise, if any child processes match the specified string, their