PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Change to Hwk2/mainParsley.c
Date: Monday, 28 Sep 2020, 22:38:04


Apparently some students are confused when parsley writes something
like

  (1)$ a >b c
  CMD (Depth = 0):  SIMPLE,  argv[0] = a,  argv[1] = c  >b

and think that it is just reordering the arguments when in fact the
>b denotes redirection of stdout.

To reduce the confusion, tomorrow morning (when fewer of you are
likely to be working), I will modify Hwk2/mainParsley.c so that
it prints

  CMD (Depth = 0):  SIMPLE,  argv[0] = a,  argv[1] = c  STDOUT > b

instead (with a similar change for stdin).  I will update all of
the Hwk2/Tests/t??.t files as well.

--Stan-
PREV INDEX NEXT