Thread View: gnu.bash.bug
2 messages
2 total messages
Started by Roland McGrath
Sat, 24 Jun 1989 13:01
n>&m redirection doesn't work in bash 0.99
Author: Roland McGrath
Date: Sat, 24 Jun 1989 13:01
Date: Sat, 24 Jun 1989 13:01
3 lines
515 bytes
515 bytes
In bash 0.99, when foobar doesn't exist, do: cat foobar 2>&1 >foo The error message from cat goes to the terminal.
n>&m redirection doesn't work in bash 0.99
Author: Jeff Kellem
Date: Sun, 25 Jun 1989 03:14
Date: Sun, 25 Jun 1989 03:14
21 lines
1093 bytes
1093 bytes
| Date: Sat, 24 Jun 89 22:01:20 +0900 | From: Roland McGrath <roland@ai.mit.edu> | | In bash 0.99, when foobar doesn't exist, do: | cat foobar 2>&1 >foo | The error message from cat goes to the terminal. This is exactly how the Bourne SHell handles output redirection. The redirections are handled from left to right, so to get what you would like, do the following: cat foobar > foo 2>&1 BTW, your above example also displays the error msg to the terminal in the Bourne SHell. -jeff Jeff Kellem INTERNET: composer@bu-cs.bu.edu (or composer%bu-cs.bu.edu@bu-it.bu.edu) UUCP: ...!harvard!bu-cs!composer
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads