[cs631apue] Question about operator and redirect
Jan Schaumann
jschauma at stevens.edu
Fri Dec 11 19:10:21 EST 2015
Yanqiao Zhan <yzhan14 at stevens.edu> wrote:
> 1. Will there always have whitespace before and after operator(e.g & > >> |
> <)?
No. The following are equivalent:
ls|wc>out
ls |wc >out
ls| wc > out
> 2. In linuxlab, I did a experiment of redirection.
>
> yzhan14 at avatar:~$ echo "hello" > test1 > test2 > test3 > test4 > test5
You do not need to support this. You may give an error about ambigous
redirection or emulate the behaviour observed in bash.
-Jan
More information about the cs631apue
mailing list