PREV INDEX NEXT

Author: Emily
Subject: Infinite loop?
Date: Friday, 21 Feb 2020, 11:59:49

The spec notes that "Some substitutions (e.g., "strwrs -s a a" applied to "a") would not normally terminate," and gives specific instances of this to handle (like when the line is unchanged). Do we need to handle other instances of infinite loops? I ran 
$ echo "abababa" |  /c/cs223/Hwk3/strwrs -r ab aba
in the terminal, and after 1-2 minutes of letting it go, I control C'd it. Is it okay for our code to do this too? 

Thank you!
PREV INDEX NEXT