PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] Reposting Escaped
Date: Monday, 24 Feb 2020, 21:05:57


    > Message Posted By: Unknown
    >
    > I'm reposting this as I'm also interested into what is happening. -v shows
    > nothing.
    >
    > "When I run "echo "aaa\" | /c/cs223/Hwk3/strwrs \\ b", I don't get any
    > output, even though I would have expected the backslash in "aaa\" to be
    > substituted with b. How should our program deal with escaped backslashes
    > and escaped characters in general?"

To understand what is happening, you need to know what
arguments (i.e., the sequences of characters) the shell
is passing to strwrs.  I have modified Hwk3/strwrs to do
so (the arguments are enclosed in <....>); the previous
version is now Hwk3/strwrs.V0.

If this does not answer your question, please ask again.

--Stan-
PREV INDEX NEXT