bug-bash
[Top][All Lists]
Advanced

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

Re: Preventing Bash Variable Confusion


From: Greg Wooledge
Subject: Re: Preventing Bash Variable Confusion
Date: Thu, 30 Jan 2020 08:35:26 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, Jan 30, 2020 at 11:37:26AM +0800, konsolebox wrote:
> You can still use all caps on global variables just mind the internal
> variables.

Easier said than done.  How many times have you had to diagnose
someone's failing script, and it turned out the reason it was failing
was because they used a variable like HOME or PATH or USER and "forgot"
that it would conflict with a special/environment variable?

For me, that answer is "too many".



reply via email to

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