Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Feb 2017 22:48:49 -0500
From:      "Garance A Drosehn" <drosih@rpi.edu>
To:        "James B. Byrne" <byrnejb@harte-lyne.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Variable assignment in sh
Message-ID:  <6DCAA321-F6E4-4430-8851-8380F589DF13@rpi.edu>
In-Reply-To: <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca>
References:  <mailman.108.1486036867.50898.freebsd-questions@freebsd.org> <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 3 Feb 2017, at 17:25, James B. Byrne wrote:

> On Wed, February 1, 2017 19:21, Garance A Drosehn wrote:
>
>>
>> On something of minor tangent, if you're writing scripts in
>> either 'sh' or 'bash', you may find the following web site
>> helpful:         http://www.shellcheck.net
>
>
> I just wish to clarify something here.  What I am doing is attempting
> to reuse a one-liner that has one conditional in it.  I do not
> consider that to be scripting or programming.  I am just piping
> a few tools together and checking if anything comes out the end.

Understood, but even those trivial one-liner tasks might be improved
by pasting them into shellcheck.  I've had shellcheck point out things
I'm doing which "almost always" work, but will fail depending on the
filenames my one-liner happens to be working on.

Also note that I **did** say that my suggestion was a minor tangent,
and thus I realize it was not necessarily on-topic.  :)  I just
thought that some people who read this thread might find the site
to be helpful.

Cheerio.

-- 
Garance Alistair Drosehn                =     drosih@rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?6DCAA321-F6E4-4430-8851-8380F589DF13>