Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A shell colon does nothing. Use it anyway.. Parent comment
> Why use the null-command when I could do VAR=${VAR:-default-value}?
and points out it's one less thing to typo, but that assumes the name is the same; I like e.g.
TARGETFILE="${1:?need input file}" OPTIONALVAL="${2:-defaultvalue}"
There are no comments on this comment yet.
> Why use the null-command when I could do VAR=${VAR:-default-value}?
and points out it's one less thing to typo, but that assumes the name is the same; I like e.g.