Commit 54c1650a authored by rg's avatar rg
Browse files

Prise en compte des chaines avec espaces.

parent 39d8c47e
......@@ -4,7 +4,7 @@ selectmenu() {
local MAX_LEN=0;
local MULTI=0;
local ALIGN=-1;
for var in $@; do
for var in "$@"; do
if [[ "$var" =~ ^-s([0-9]+)$ ]]; then POS=$[${BASH_REMATCH[1]}-1]; shift; fi
if [[ "$var" =~ ^-ro$ ]]; then RET=1; shift; fi
if [[ "$var" =~ ^-a([0-9]+)$ ]]; then ALIGN=$[${BASH_REMATCH[1]}]; shift; fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment