diff options
author | Elan Ruusamäe <glen@delfi.ee> | 2014-01-21 22:33:08 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2014-11-23 20:35:03 (GMT) |
commit | 6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4 (patch) | |
tree | d9dea7e129b22d9fe37b37823d75f345afad8f1e | |
parent | 2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee (diff) | |
download | Ninja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.zip Ninja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.tar.gz Ninja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.tar.bz2 |
no subshell
don't need subshell to send stderr to /dev/null
-rw-r--r-- | misc/bash-completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/bash-completion b/misc/bash-completion index 6edf4df..0536760 100644 --- 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 |