For new checks and feature suggestions
Here's a snippet or screenshot that shows a potential problem:
#!/bin/sh
printf "You are on host %s" "$(hostname)"
Here's what shellcheck currently says:
Nothing
Here's what I wanted to see:
Shellcheck should flag this use of hostname as non POSIX (see also issue #3468) and recommend uname -n instead (not that this does not include other usecases of the hostname command like setting the hostname).
For new checks and feature suggestions
and didn't find anything relatedrequesting this featureHere's a snippet or screenshot that shows a potential problem:
Here's what shellcheck currently says:
Nothing
Here's what I wanted to see:
Shellcheck should flag this use of hostname as non POSIX (see also issue #3468) and recommend
uname -ninstead (not that this does not include other usecases of thehostnamecommand like setting the hostname).