On Tue, Apr 12, 2022 at 02:45:15PM -0400, Sergio Fuentes wrote: > Please, run the following 3 commands to reproduce the bug: > > echo '. ./poc.sh' > poc.sh > chmod +x poc.sh > bash -c './poc.sh'
You're performing an infinite recursion. Eventually, you'll overflow the stack, and bash will crash. This is to be expected. You'd get the same result if you wrote a C program with a recursive function that calls itself infinitely.