Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Disable __rclone_custom_func if posix mode is on

Danil Semelenovb3db38ae3150
diff --git a/cmd/help.go b/cmd/help.go
index b474a9c34..3874db1e9 100644
--- a/cmd/help.go
+++ b/cmd/help.go
@@ -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