[GTALUG] Script to show HTTP(S) and TLS details for a website
William Park
opengeometry at yahoo.ca
Sat Sep 14 20:42:39 EDT 2019
On Sat, Sep 14, 2019 at 10:02:46AM -0400, D. Hugh Redelmeier via talk wrote:
> | From: William Park via talk <talk at gtalug.org>
>
> | Hmm, minor personal irritant about variable assigment:
> | var=$(...)
> | is enough. You don't need to do
> | var="$(...)"
>
> I think that getting quotes right in sh is hard. I support the
> simplest rule that works:
>
> Always double-quote a $ thing UNLESS it must not be quoted.
>
> The case you point out may be quoted, so I would quote it.
Extra quotes distract your eyes, makes it difficult to read or spot a
bug. It's like always carrying an opened umbrella (because you can),
when you should do it only when it rains.
--
William Park <opengeometry at yahoo.ca>
More information about the talk
mailing list