Skip to content

SC3028 hostname utility is not in POSIX at all #3468

Description

@polluks

For bugs with existing features

Here's a snippet or screenshot that shows the problem:

#!/bin/sh
hn=${HOSTNAME}
echo "$hn"
hn=$(HOSTNAME)
echo "$hn"

Here's what shellcheck currently says:

$(HOSTNAME) is okay

Here's what I wanted or expected to see:

use uname -n
see gwsw/less#770

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions