[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] regex for allowed names of bash variables

From: Greg Wooledge
Subject: Re: [Help-bash] regex for allowed names of bash variables
Date: Thu, 31 Dec 2015 07:44:09 -0500
User-agent: Mutt/

On Wed, Dec 30, 2015 at 10:26:24PM -0600, Peng Yu wrote:
> Hi, I want to know the exact definition of allowed as bash variable
> names. Could anybody know the regex for it?

       name A word consisting only of alphanumeric characters and
            underscores, and beginning with an alphabetic character or an
            underscore.  Also referred to as an identifier.

      A parameter is an entity that stores values.  It can be a name, a
      number, or one of the special characters listed below under Special
      Parameters.  A variable is a parameter denoted by a name.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]