[-] lab6-task1
by dmitriyz - Monday, 16 May 2016 15:47:26
1.You've asked to redirect input/output only in the child process. Does it mean that all the command from the previous lab such as history,set, env etc. dont have to support the redirection commands?

2.What does the command "ls <in" mean? Does it mean that if "-l" is written in the file "in" the command "ls -l" would be activated?
Re: lab6-task1
by llutan - Tuesday, 24 May 2016 15:16:01
1. I'm not sure how can "set" and "env" relate to redirection, but the history should store the original command, so "echo hello > file" should be kept in the history as is. When the command is recalled (using "!"), it recalls the redirection operator as well.

2. "ls < in" means that the stdin of "ls" is redirected to take input from the file "in" instead of the keyboard. Since the command "ls" never reads from stdin, it will work the same with redirection as it would without.