Merge pull request #3128 from jb-leger/revert_portable_env_args_trick

Revert portable env args trick
This commit is contained in:
Anthony Scopatz 2019-05-21 17:40:34 -05:00 committed by GitHub
commit a555b517f5
Failed to generate hash of commit
3 changed files with 27 additions and 8 deletions

View file

@ -0,0 +1,25 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* portable trick to pass args which replace '/usr/bin/env' is removed and
'/usr/bin/env' is used. Fixes bug when a python3 used is outside the default
'PATH'.
**Security:**
* <news item>

View file

@ -1,7 +1,4 @@
#!/bin/sh
''''exec python3 -u "$0" "$@"
'''#'
# Portable trick to pass option [-u] to python3, more portable than /usr/bin/env.
#!/usr/bin/env python3 -u
from xonsh.main import main
main()

View file

@ -1,7 +1,4 @@
#!/bin/sh
''''exec python3 -u "$0" "$@"
'''#'
# Portable trick to pass option [-u] to python3, more portable than /usr/bin/env.
#!/usr/bin/env python3 -u
from xonsh.xoreutils.cat import cat_main as main
main()