mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #3128 from jb-leger/revert_portable_env_args_trick
Revert portable env args trick
This commit is contained in:
commit
a555b517f5
3 changed files with 27 additions and 8 deletions
25
news/revert_portable_env_args_trick.rst
Normal file
25
news/revert_portable_env_args_trick.rst
Normal 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>
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue