Bash completion for d8: fix directory name completion

TEST="out/ia32.release/d8 te<tab>" gets completed to "test/" with trailing slash

Review URL: https://chromiumcodereview.appspot.com/9363025

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10649 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d714d851
......@@ -48,8 +48,8 @@ _v8_flag() {
cat src/d8.cc \
| grep "strcmp(argv\[i\]" \
| sed -ne 's/^[^"]*"--\([^"]*\)".*/--\1/p')
COMPREPLY=($(compgen -W "$targets" -- "$cur") $(compgen -f -- "$cur"))
COMPREPLY=($(compgen -W "$targets" -- "$cur"))
return 0
}
complete -F _v8_flag d8
complete -F _v8_flag -f d8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment