4 ms·
`shuf` is not POSIX, so that would make this BASH.
by pard68 7y ago
`shuf` is not POSIX, so that would make this BASH.
- shakna 7y agoIt wouldn't necessarily make it Bash. That would mean using actual Bash features. It's still non-portable sh, because it relies on an extra program being available, but it isn't relying on Bash itself - none of expansions or so on. This is what makes it Bash: file="${1:-~/.mrkdb}" Not shuf.
- kiwidrew 7y agoActually, "${name-word}" has been part of the Bourne shell since the beginning, and the "${name:-word}" extension is specified in recent versions of the POSIX standard...
- anthk 7y agoThere is a free `shuf` for OpenBSD