I always had some here and there issues with shebang in my scripts and I always tried to stick to some rules sometimes without knowing why. I just stumbled upon this nice video that showcases some of the edge cases:
I always had some here and there issues with shebang in my scripts and I always tried to stick to some rules sometimes without knowing why. I just stumbled upon this nice video that showcases some of the edge cases: