Variable assignment in sh
Garance A Drosehn
drosih at rpi.edu
Thu Feb 2 00:29:21 UTC 2017
On 1 Feb 2017, at 14:59, James B. Byrne via freebsd-questions wrote:
> On Tue, January 31, 2017 14:01, Polytropon wrote:
>> I know, those are very special cases, and if your goal is not
>> portability and "guaranteed availability", then it won't hit you.
>> I just thought it's worth being mentioned.
> Thank you. I have found your explanation of what goes on under the
> covers very interesting. In this case I am dealing with a zfs system
> so if /usr is not there then neither is /bin.
On something of minor tangent, if you're writing scripts in either 'sh'
or 'bash', you may find the following web site helpful:
shellcheck is also available as a port, if you don't want to be pasting
your shell code into somebody else's web site. The last time I checked,
the port brings in several other ports, so I tend to use the web site.
Garance Alistair Drosehn = drosih at rpi.edu
Senior Systems Programmer or gad at FreeBSD.org
Rensselaer Polytechnic Institute; Troy, NY; USA
More information about the freebsd-questions