Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #223968

Re: Looping Shell Scripts and System Load

From kjonca@poczta.onet.pl (Kamil Jońca)
Newsgroups linux.debian.user
Subject Re: Looping Shell Scripts and System Load
Date 2020-06-24 21:40 +0200
Message-ID <Aljpv-7wx-1@gated-at.bofh.it> (permalink)
References <Aljpw-7wx-3@gated-at.bofh.it> <Aljpw-7wx-5@gated-at.bofh.it> <Aljpw-7wx-7@gated-at.bofh.it> <Aljpw-7wx-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Re: Looping Shell Scripts and System Load kjonca@poczta.onet.pl (Kamil Jońca) - 2020-06-24 21:40 +0200

csiph-web