From: Michael Tremer Date: Fri, 10 Aug 2012 09:31:26 +0000 (+0000) Subject: cli: Fix cli_get_val function to split at the first occurence of '='. X-Git-Tag: 005~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=204bb6adce2da7cf1ad68c4e4a7d45f17e42196e;p=network.git cli: Fix cli_get_val function to split at the first occurence of '='. --- diff --git a/functions.cli b/functions.cli index f1ede003..b6ac6a16 100644 --- a/functions.cli +++ b/functions.cli @@ -307,7 +307,7 @@ function cli_get_key() { } function cli_get_val() { - echo "${@##*=}" + echo "${@#*=}" } function cli_usage() {