From 5de548e5ee8fd5fc9873963ae4a9d477b2bfdcb3 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 6 Oct 2011 16:20:12 -0500 Subject: Bugfix 6747: use bash conditional expressions instead of posix test expressions when doing comparisons. The conditional expressions don't do as much expansion as the test expression does, and are the modern variant --- etc/bash_completion.d/vyatta-op | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 48074dd..815b264 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -514,7 +514,7 @@ _vyatta_pipe_completion () _vyatta_pipe_noncompletions=() for word in "$@"; do - if [ "$found" == "1" -o "$word" == "|" ]; then + if [[ "$found" == "1" || "$word" == "|" ]]; then pipe_cmd+=( "$word" ) found=1 fi -- cgit v1.2.3