PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] 2>
Date: Monday, 21 Sep 2020, 22:28:18


    > Message Posted By: Unknown
    >
    > Is 2> only a token if there is a whitespace before the 2?

As stated in the specification

  Although they are implemented in the reference solution, your parse() NEED
  NOT handle single or double quoted strings or redirection involving stderr
  (i.e., 2>, 2>>, and &>).  They will not be tested.

But if you have implemented redirection involving stderr,
then the commands

  (1)$ a;2>b c

and

  (1)$ (a)2>b

illustrate that there need not be a space before 2>.

--Stan-
PREV INDEX NEXT