PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] example
Date: Monday, 28 Sep 2020, 17:56:46


    > Message Posted By: Unknown
    >
    > Why is the output of "ls \"
    >
    > CMD (Depth = 0):  SIMPLE,  argv[0] = ls,  argv[1] = \

As stated in the specification

  [Escape Characters] The escape character \ removes any special meaning that
  is associated with the non-null, non-newline character immediately following.
  ....  The escape character is removed.

Because a \ cannot escape a newline, it is not acting
as an escape and this is not removed.

--Stan-
PREV INDEX NEXT