Closed drdhaval2785 closed 8 years ago
https://github.com/drdhaval2785/SanskritVerb/commit/889686f62c4ee8a0602adb66a16ff3fc8ec5983f seems to have taken care of it. Generated around 1000 entries. None hanged because of while loop. If the issue resurfaces, we will have to reopen this issue.
When we ignore some sUtra which has a while loop in execution, the script hangs. e.g. 8.4.55 (khari ca)
The reason is simple. In while loop we terminate when the $text is altered. Whereas in understandsutra.sh, we have ignored that sUtra i.e. each time the $text would be reset to the earlier version. So the loop never exits.
Needs to be fixed for all while loops. Not many such loops in the code. Should be doable fast.