Menu

#17 true, false are not POSIX sh builtins

open
nobody
None
5
2019-07-03
2019-07-03
mcandre
No

The true command and false command often applied in shell scripts, are not POSIX sh. These may be provided by bash or even external commands. Anyone interested in sticking with pure POSIX sh should use colon (:) and negated colon (!:) instead.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.