projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab6003
)
no subshell
author
Elan Ruusamäe
<glen@delfi.ee>
Tue, 21 Jan 2014 22:33:08 +0000
(
00:33
+0200)
committer
Evan Martin
<martine@danga.com>
Sun, 23 Nov 2014 20:35:03 +0000
(12:35 -0800)
don't need subshell to send stderr to /dev/null
misc/bash-completion
patch
|
blob
|
history
diff --git
a/misc/bash-completion
b/misc/bash-completion
index
6edf4df
..
0536760
100644
(file)
--- a/
misc/bash-completion
+++ b/
misc/bash-completion
@@
-50,7
+50,7
@@
_ninja_target() {
esac
done;
targets_command="eval ninja -C \"${dir}\" -t targets all"
- targets=$(
(${targets_command} 2>/dev/null)
| awk -F: '{print $1}')
+ targets=$(
${targets_command} 2>/dev/null
| awk -F: '{print $1}')
COMPREPLY=($(compgen -W "$targets" -- "$cur"))
fi
return