On Mai 11 2026, Greg Wooledge wrote:

> On Mon, May 11, 2026 at 18:59:32 -0400, Zachary Santer wrote:
>> On Sun, May 10, 2026 at 5:10 PM Zachary Santer <[email protected]> wrote:
>> >
>> > Ilya, be wary of using any all-caps variables in a shell script. You
>> > can see how many bash has already reserved for its own use, and
>> > external programs tend to take all-caps environment variables for
>> > things they need.
>> 
>> Not to harp on this too much more, but look at all these variables:
>> https://docs.gitlab.com/ci/variables/predefined_variables/
>> 
>> GitLab places them in the environment of whatever its CI/CD pipelines
>> run. So I guess it's just  a general rule that environment variables
>> are all-caps.
>
> It's a long established convention, yes.

All POSIX utilities use upper case env vars, and var names containing
lowercase are reserved for applications.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to