Re: Looping Shell Scripts and System Load
- To: debian-user@lists.debian.org
- Subject: Re: Looping Shell Scripts and System Load
- From: kjonca@poczta.onet.pl (Kamil Jońca)
- Date: Wed, 24 Jun 2020 21:05:31 +0200
- Message-id: <[🔎] 87eeq4b7yc.fsf@alfa.kjonca>
- In-reply-to: <AliMP-73V-7@gated-at.bofh.it> (Greg Wooledge's message of "Wed, 24 Jun 2020 21:00:03 +0200")
- References: <Alhe1-6i7-3@gated-at.bofh.it> <AlhH3-6rP-9@gated-at.bofh.it> <Alitr-6Xd-1@gated-at.bofh.it> <AliMP-73V-7@gated-at.bofh.it>
Greg Wooledge <wooledg@eeg.ccf.org> writes:
> On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote:
>> On Wed, 24 Jun 2020, Greg Wooledge wrote:
>>
>> > > MEDIADIR=`pwd`
>> >
>> > Don't use all caps variable names.
>>
>> Without getting into syntax-religious wars, what is the reasoning behind
>> this recommendation? Roger
>
> All-caps names are reserved for environment variables (HOME, PATH),
> and internal shell variables (IFS, PWD, HISTFILE).
Is it described somewhere in docs?
>
> Avoiding all-caps names allows you to avoid collisions with a variable
> name that might be used for something else. Most of the time. This
Well, I think that reasonable prefix ("KJ_" :) ) prevent this :)
KJ
--
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
Reply to: