Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Feb 2017 22:48:49 -0500
From:      "Garance A Drosehn" <>
To:        "James B. Byrne" <>
Subject:   Re: Variable assignment in sh
Message-ID:  <>
In-Reply-To: <>
References:  <> <>

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:
> 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.


Garance Alistair Drosehn                =
Senior Systems Programmer               or
Rensselaer Polytechnic Institute;             Troy, NY;  USA

Want to link to this message? Use this URL: <>