isValidPosixName
lib.isValidPosixName
Docs pulled from | This Revision | 21 minutes ago
Test whether the given name is a valid POSIX shell variable name.
Inputs
name
-
1. Function argument
Type
string -> bool
Examples
isValidPosixName
usage example
isValidPosixName "foo_bar000"
=> true
isValidPosixName "0-bad.jpg"
=> false