stages/shell.init: add pattern for env var names

Pattern for valid environment variable names as defined in
The Open Group Base Specifications Issue 7, 2018 edition
IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Updated tests to match UPPERCASE ONLY var names.
This commit is contained in:
Achilleas Koutsou 2023-02-14 16:44:41 +01:00
parent 291726a83b
commit b848e5d9df
3 changed files with 10 additions and 7 deletions

View file

@ -27,7 +27,10 @@ SCHEMA_2 = r"""
"additionalProperties": false,
"required": ["key", "value"],
"properties": {
"key": "string",
"key": {
"type": "string",
"pattern": "^[A-Z_][A-Z0-9_]*$"
},
"value": "string"
}
}