Author: Stan Eisenstat
Subject: Re: [Cs223] The minus fence alone
Date: Monday, 24 Feb 2020, 07:33:31
> Message Posted By: Unknown
>
> When I use a + alone as the Fi argument, it will add the Ti to the
> beginning of the line, but if I use a - character alone as the Fi, the
> Staff solution breaks and will not return anything. Is this normal or
> should there be functionality where a lone - adds the Ti to the end of the
> line?
If Fi is -, and the lower case flag is n, r, or s, then
the result is an infinite loop that strwrs need not
detect. However, if the flag is q, then Hwk3/strwrs
stops after the first substitution.
Using the -v flag reveals this behavior.
--Stan-
PREV
INDEX
NEXT