forked from pool/python-argcomplete
* No stdin for python calls from bash completion functions (#488) - Prevents usage of stdin by (python) executables that are called during completion generation. This prevents the completion locking up the entire shell when the python script is broken i.e. it enters an interactive mode (REPL) instead of generating the completions, as expected. * Localize shell variable REPLY to avoid overwriting users’ value (#489) - The variable REPLY is used by default by the ``read`` shell builtin to store the return value, and like all bash/zsh variables, is scoped globally. This change allows this variable to be used for other needs by appropriately scoping its internal use by an argcomplete utility function that uses ``read``. - Drop patches for issued fixed upstream * bash-repl.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=72
14 lines
536 B
Diff
14 lines
536 B
Diff
Index: argcomplete-3.0.8/test/test.py
|
|
===================================================================
|
|
--- argcomplete-3.0.8.orig/test/test.py
|
|
+++ argcomplete-3.0.8/test/test.py
|
|
@@ -65,7 +65,7 @@ def _repl_sh(command, args, non_printabl
|
|
|
|
|
|
def bash_repl(command="bash"):
|
|
- bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh")
|
|
+ bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh")
|
|
sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]")
|
|
return sh
|
|
|