4 ms·
I'm guessing that Zsh is doing this in its fallback strategy for when the exec fails. The exec fails when a shell tries to run an executable file that has no h
by kazinator 4y ago
I'm guessing that Zsh is doing this in its fallback strategy for when the exec fails.
The exec fails when a shell tries to run an executable file that has no hash bang header, but also in a case like this when the header doesn't give a path that resolves to an interpreter.
Without the #!echo, I'm guessing Zsh would have interpreted the file as as Zsh script.