Skip to content

Potential bashism in resolvconf /bin/sh shell script #36

@ilmanzo

Description

@ilmanzo

with reference to https://github.com/NetworkConfiguration/openresolv/blame/0c0d864df22c5359853cdea850e0ee88a95e51c6/resolvconf.in#L595

checking the script, both shellcheck and checkbashisms gives error on this condition

if [ -f "$ii" ] && [ "${i#* }" == "$ii" ]; then
                               ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.

$  checkbashisms resolvconf.in
possible bashism in resolvconf.in line 595 (should be 'b = a'):
                                        if [ -f "$ii" ] && [ "${i#* }" == "$ii" ]; then

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions