Hi,
`break n` can break out of nested `for`. But sometimes it would be
convenient to break from nested `if`, which does not seem to be an
available feature in bash.
One walkaround is to put the nested `if` in a function and use return
to break from the nested if. But this is not very convenient, as an
extra function must be defined.
Is there a better walkaround to this problem? Thanks.
--
Regards,
Peng