What is an available character for a variable name on bash?
Environment
- Red Hat Enterprise Linux
- bash
Issue
- What is an available character for a variable name on bash?
Resolution
An available character is the following regular expression:
[0-9A-Za-z_]
- a digit
- a higher alphabet
- a lower alphabet
- "_"
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments