no subshell
authorElan Ruusamäe <glen@delfi.ee>
Tue, 21 Jan 2014 22:33:08 +0000 (00:33 +0200)
committerEvan 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

index 6edf4df..0536760 100644 (file)
@@ -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