Wait... they should be a maximum of 4 digits.

This commit is contained in:
Nathan Broadbent
2013-08-15 23:55:12 -07:00
parent 726b864785
commit b765b00776

View File

@@ -119,7 +119,7 @@ scmb_expand_args() {
first=1 first=1
OLDIFS="$IFS"; IFS=" " # We need to split on spaces to loop over expanded range OLDIFS="$IFS"; IFS=" " # We need to split on spaces to loop over expanded range
for arg in "$@"; do for arg in "$@"; do
if [[ "$arg" =~ ^[0-9]{0,3}$ ]] ; then # Substitute $e{*} variables for any integers if [[ "$arg" =~ ^[0-9]{0,4}$ ]] ; then # Substitute $e{*} variables for any integers
if [ "$first" -eq 1 ]; then first=0; else printf '\t'; fi if [ "$first" -eq 1 ]; then first=0; else printf '\t'; fi
if [ -e "$arg" ]; then if [ -e "$arg" ]; then
printf '%s' "$arg" printf '%s' "$arg"