4 ms·
I didn’t read this in enough depth to figure out what it was talking about, but I did see this: > Most distributions have the printf command printf is part of
by saagarjha 7y ago
I didn’t read this in enough depth to figure out what it was talking about, but I did see this:
> Most distributions have the printf command
printf is part of SUS and POSIX; this means that pretty much every system from this millennium will have it.
- deathanatos 7y agoNot only is it guaranteed by POSIX, it's also a built-in in bash. (And the author, I believe, is writing bash, not generic shell: the shebang in part 1 is to bash, and "local", which appears in this article, is not defined by POSIX.) I suppose there could be an (early?) version of bash that it wasn't built it (and then the POSIX argument applies); but OS X ships a version of bash over a decade old (2007), and it's a builtin there, so it's been there for at least that long…