|
|
In the following descriptions, if the file descriptor number is omitted, and the first character of the redirection operator is .BR < , the redirection refers to the standard input (file descriptor 0). If the first character of the redirection operator is .BR > , the redirection refers to the standard output (file descriptor 1).
The word following the redirection operator in the following descriptions, unless otherwise noted, is subjected to brace expansion, tilde expansion, parameter expansion, command substitution, arithmetic expansion, quote removal, pathname expansion, and word splitting. If it expands to more than one word, bash reports an error.
Note that the order of redirections is significant. For example, the command
directs only the standard output to file .IR dirlist , because the standard error was duplicated as standard output before the standard output was redirected to .IR dirlist .
Bash\fP handles several filenames specially when they are used in redirections, as described in the following table:
A failure to open or create a file causes the redirection to fail.
Web: http://shell.tjgy.com Email:support@tjgy.com