diff options
Diffstat (limited to 'functions.sh')
-rw-r--r-- | functions.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functions.sh b/functions.sh index 2174fec..b591acb 100644 --- a/functions.sh +++ b/functions.sh @@ -242,12 +242,12 @@ hr() # Determines whether the first parameter is a valid identifier (variable name). # is_identifier() -( - LC_ALL=C +{ case $1 in - ''|_|[[:digit:]]*|*[!_[:alnum:]]*) false + ''|_|[0123456789]*|*[!_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]*) + false esac -) +} # # Determines whether the first parameter is a valid integer. A leading |