X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/4505426bd22cabbf27b6d672c909e7e1ac0b8948..bce2d1712db2962582aec9f56e78ec4c496cef67:/new_loba.sh?ds=inline diff --git a/new_loba.sh b/new_loba.sh index 40b6ea1..ba076fb 100755 --- a/new_loba.sh +++ b/new_loba.sh @@ -25,7 +25,7 @@ EOF fi name=$(echo $1 | tr A-Z a-z) -if ! echo "$name" | grep -q '^[a-z][a-z0-9_]*$' \ +if ! echo "$name" | grep -q '^[a-z0-9_]\+$' \ || ! [ $(echo "$name" | wc -l) = 1 ]; then echo "ERROR: invalid name -- \"$name\"" >&2 exit 1