Tagged Questions
2
votes
1answer
52 views
Why is it possible to refer to a closed stderr under bash?
I'd like to know why bash doesn't display an error message when we refer to a closed stderr. When it comes to other file descriptors, they have to be opened if we want to, for example, duplicate them. ...
1
vote
2answers
134 views
Where to place a Bash shell redirection for a command? [duplicate]
Possible Duplicate:
Order of redirections
Apart from the standalone exec >&2 to redirect the current shell's input and output are there any behavioral differences in the following ...
2
votes
1answer
266 views
Parameretrize file descriptor number to open a tcp socket in shell script
I'm tried to parameretrize in a variable the file descriptor number to open a tcp socket using exec command but it failed. Only work correctly when file descriptor number is a constant. In the next ...
8
votes
1answer
212 views
Order of redirections
I don't quite understand how the computer reads this command.
cat file1 file2 1> file.txt 2>&1
If I understand, 2>&1 simply redirect Standard Error to Standard Output.
By that ...