completion.at: Improve portability
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 14 Oct 2015 06:36:20 +0000 (06:36 +0000)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 26 Nov 2015 09:37:07 +0000 (18:37 +0900)
commit622aff9668176cec0fde985928b863e871c42831
tree6e176309f67153ad25e943ef5b4b9401a95bb967
parent6a54bae19648a305a52fb6a911723cbc49bc822b
completion.at: Improve portability

NetBSD's /bin/sh complains on the syntax of bash array.

While the use of eval might seem overkill, it's tricky to avoid
the error because the generated code will be a part of the surrounding
subshell and the syntax check is done a bit earlier than the execution
of these conditionals.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Acked-by: Ben Pfaff <blp@ovn.org>
tests/completion.at