ruiu added inline comments.

================
Comment at: clang/utils/bash-autocomplete.sh:8-9
+  # the latter doesn't. So we use compgen only when _filedir is not provided.
+  _filedir 2>/dev/null
+  [[ "$?" != 0 ]] && COMPREPLY=( $( compgen -f ) )
+}
----------------
If this works, you can probably make it shorter

  _filedir 2> /dev/null || COMPREPLY=...



https://reviews.llvm.org/D34924



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to