On SUN systems, the direction of the standard output stream and error messages is not the same under the sh shell and the C shell.
Shell Type | Redirection Syntax | Results |
---|---|---|
sh shell | >out | Sends error messages to the file called out. |
sh shell | >out& | Sends the standard output stream to the system console and runs BTEQ in the background. |
sh shell | >out>&1 | Sends both error messages and the standard output stream to the file out. |
C shell | >out | Sends the standard output stream to the file out, and error messages to the workstation screen. |
C shell | >&out | Sends both error messages and the standard output stream to the file called out. |