Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user:jenda:python-binfmt [2019/01/16 03:27]
jenda created
user:jenda:python-binfmt [2019/01/16 03:30] (current)
jenda
Line 10: Line 10:
 </​code>​ </​code>​
  
-Btw. what's the difference between "#​!/​usr/​bin/​env python3"​ and "#​!/​usr/​bin/​python3"?​ There is one, besides the obvious one that weird systems may have Python installed in /opt and hardcoded path will thus not work: the kernel does not split argv for a hashband ​command, so you can't pass multiple options! Try creating and running this:+Btw. what's the difference between "#​!/​usr/​bin/​env python3"​ and "#​!/​usr/​bin/​python3"?​ There is one, besides the obvious one that weird systems may have Python installed in /opt and hardcoded path will thus not work: the kernel does not split argv for a hashbang ​command, so you can't pass multiple options! Try creating and running this:
 <​code>​ <​code>​
 /tmp> cat ./test.sh /tmp> cat ./test.sh
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki