Article 4V6JR Recursion in Bash: share your opinion.

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.latest?d=yIl2AUoC8zA latest?i=uSnuhQ1_e4Y:EfEY9MNkB7c:F7zBnMy latest?i=uSnuhQ1_e4Y:EfEY9MNkB7c:V_sGLiP latest?d=qj6IDK7rITs latest?i=uSnuhQ1_e4Y:EfEY9MNkB7c:gIN9vFwuSnuhQ1_e4Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments