help-bash
[Top][All Lists]
Advanced

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

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


From: Chris F.A. Johnson
Subject: Re: [Help-bash] regex for allowed names of bash variables
Date: Thu, 31 Dec 2015 03:23:02 -0500 (EST)
User-agent: Alpine 2.10 (DEB 1266 2009-07-14)

On Wed, 30 Dec 2015, Peng Yu wrote:

Hi, I want to know the exact definition of allowed as bash variable
names. Could anybody know the regex for it?

  [[ ${var^^} =~ ^[A-Z_][A-Z0-9_]*$ ]]

--
Chris F.A. Johnson, <http://cfajohnson.com>



reply via email to

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