diff --git a/data/completions/gst-inspect-1.0 b/data/completions/gst-inspect-1.0 index ebb4d62735..47c78af6ea 100644 --- a/data/completions/gst-inspect-1.0 +++ b/data/completions/gst-inspect-1.0 @@ -60,7 +60,7 @@ __inspect_main () then command="$var" fi - i=$[$i+1] + i=$(($i+1)) done if [[ "$command" == "--gst"* ]]; then diff --git a/data/completions/gst-launch-1.0 b/data/completions/gst-launch-1.0 index d481076eee..bb0dfe53e3 100644 --- a/data/completions/gst-launch-1.0 +++ b/data/completions/gst-launch-1.0 @@ -65,7 +65,7 @@ _gst_launch_main () then command="$var" fi - i=$[$i+1] + i=$(($i+1)) done i=1 @@ -76,7 +76,7 @@ _gst_launch_main () if [[ "$var" == "--"* ]] then - i=$[$i+1] + i=$(($i+1)) continue fi @@ -86,7 +86,7 @@ _gst_launch_main () previous_element="$var" have_previous_element=1 fi - i=$[$i+1] + i=$(($i+1)) done if [[ "$command" == "--gst"* ]]; then