summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2014-01-21 22:33:08 (GMT)
committerEvan Martin <martine@danga.com>2014-11-23 20:35:03 (GMT)
commit6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4 (patch)
treed9dea7e129b22d9fe37b37823d75f345afad8f1e /misc
parent2ab60038b60c8e89ff5ccc7aaf8028f3d7acf4ee (diff)
downloadNinja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.zip
Ninja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.tar.gz
Ninja-6fc15c47a0b17e627f80d6f1d8f08f03d3ae88d4.tar.bz2
no subshell
don't need subshell to send stderr to /dev/null
Diffstat (limited to 'misc')
-rw-r--r--misc/bash-completion2
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