PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] whitespace in a command
Date: Tuesday, 20 Oct 2020, 20:25:26


    > Message Posted By: Unknown
    >
    > I am not sure what including whitespace in a command with an escape
    > character means. It seems like whitespace gets printed fine already when
    > it is part of the input. Where would a whitespace be allowed ONLY if escaped?

Consider the following two commands:

  % echo a\ \ b

and

  % echo a  b

The first prints "a  b\n" because its first argument
is "a  b"; the second prints "a b\n" because its first
argument is "a" and its second argument is "b".

--Stan-
PREV INDEX NEXT