A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Count supernumerary comp. iterations.
[loba.git]
/
new_loba.sh
diff --git
a/new_loba.sh
b/new_loba.sh
index 40b6ea193879a17d2bc058abf46c86f532b783bc..ba076fb753f1ee4f64d873ea29a9917526bb233c 100755
(executable)
--- 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-z
0-9_]\+
$' \
|| ! [ $(echo "$name" | wc -l) = 1 ]; then
echo "ERROR: invalid name -- \"$name\"" >&2
exit 1