[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] What is the regex for bash variable names?
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] What is the regex for bash variable names? |
Date: |
Wed, 7 Feb 2018 12:47:09 -0500 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Wed, Feb 07, 2018 at 11:01:33AM -0600, Peng Yu wrote:
> Hi, I'd like to know the exact definition of a bash variable name in
> terms of regex. Is this documented somewhere? Thanks.
name A word consisting only of alphanumeric characters and under‐
scores, and beginning with an alphabetic character or an under‐
score. Also referred to as an identifier.