From: Andre Noll Date: Thu, 25 Nov 2010 16:36:23 +0000 (+0100) Subject: gsu: Don't use the =~ operator. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=9923673f6d5cd23f6680ca24249f47c2b1d447cb;ds=sidebyside gsu: Don't use the =~ operator. I need it at least on one machine that still has only bash-2. --- diff --git a/funcs/gsu b/funcs/gsu index 673605e..1d23973 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -427,7 +427,7 @@ gsu_getopts() ret=-$E_GSU_GETOPTS result="invalid optstring $1" - if [[ -z "$1" || "$1" =~ "::" ]]; then + if [[ -z "$1" ]] || grep -q '::' <<< "$1" ; then gsu_err_msg exit 1 fi