Recursion in Bash: share your opinion.
by igadoter from LinuxQuestions.org on (#4V6JR)
My own is it should be avoided. As I think recursion is being done by sub shell calls. But then there is problem with script termination cause Ctrl+C kills only low bottom shell. But maybe I am mistaken. I think it is not harmful if from very beginning it is known that recursion is never deep. Here balance is simple code with recursion against more complicated code without recursion. It is not only theoretical problem. I just recently have seen bash script with recursion - I am not quite sure what to think about this and only my own opinion can be biased.

