Re:Elegant Bash Conditionals
by stonewareslord on Tuesday March 02, 2021 @10:51PM
(#26324540)
Echo is defined differently in different shells ("not portable"). Also it can have arguments which breaks things sometimes:
Generally you should use printf because of its consistency. For a simpler example of OP's:
Is fine. I don't see the need to pass a format string to your function. Just call:
[ Parent
| on HN ]
There are no comments on this comment yet.