Article 5SY7M env shebang enters infinite loop

env shebang enters infinite loop

by
doru
from LinuxQuestions.org on (#5SY7M)
Code:$ cat shebang.sh
#!/usr/bin/env hisvar=8 /bin/bash

echo hisvar=$hisvar
$ ./shebang.sh
^CThis enters an infinite loop. Why?!latest?d=yIl2AUoC8zA latest?i=-HMW71Ke84k:JafjUxWh-qM:F7zBnMy latest?i=-HMW71Ke84k:JafjUxWh-qM:V_sGLiP latest?d=qj6IDK7rITs latest?i=-HMW71Ke84k:JafjUxWh-qM:gIN9vFw
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