[PATCH] D34927: [Bash-autocompletion] Fix a bug that -foo=bar doesn't handled properly

Rui Ueyama via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 2 00:27:14 PDT 2017


ruiu added inline comments.


================
Comment at: clang/utils/bash-autocomplete.sh:37
     arg="$w1=,"
+  elif [[ ${cur:0:1} == '-' && ${cur: -1} == '=' ]]; then
+    # -foo=<tab>
----------------
I think you can do `"$cur" == -*=`.


https://reviews.llvm.org/D34927





More information about the cfe-commits mailing list