case $option in *=*) envvar=`expr "x$option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $envvar" >&2 { (cleanup; exit 1); cleanup; exit 1; }; } optarg=`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$envvar='$optarg'" export $envvar continue;; *) echo "Unrecognized option: $option" exit 1 ;; esac # vim: ft=sh