Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Colodebug: a simple way to improve Bash script debugging. Parent comment
The first suggestion is to add
export -f :
The second is to add
local IFS=" " # Insulate : from changes to IFS
because if I didn't then each word of the comment would appear on a separate line like this:
:: a b c
IFS="/n/t"
There are no comments on this comment yet.
The first suggestion is to add
just before the fi so that it is available to scripts called from the main script.The second is to add
before the printf.because if I didn't then each word of the comment would appear on a separate line like this:
instead of this: the reason for this is that I had defined as suggested by the Unofficial Strict Mode.