mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
Disable __rclone_custom_func if posix mode is on
A workaround for #3489. Code in `__rclone_custom_func` relies on process substitutions `<(...)` to preserve changes of variables within `while` bodies, which is not supported in the posix mode.
This commit is contained in:
parent
c0d1869204
commit
b3db38ae31
@ -39,7 +39,7 @@ documentation, changelog and configuration walkthroughs.
|
||||
const (
|
||||
bashCompletionFunc = `
|
||||
__rclone_custom_func() {
|
||||
if [[ ${#COMPREPLY[@]} -eq 0 ]]; then
|
||||
if [[ ${#COMPREPLY[@]} -eq 0 && :$SHELLOPTS: != *:posix:* ]]; then
|
||||
local cur cword prev words
|
||||
if declare -F _init_completion > /dev/null; then
|
||||
_init_completion -n : || return
|
||||
|
Loading…
Reference in New Issue
Block a user