Skip to content

some linux versions (busybox for example) don't support "tr" options like "cntrl" and "alnum" #1534

Open
@BigD2244

Description

@BigD2244

Describe the bug
some linux versions (busybox for example) don't support "tr" options like "cntrl" and "alnum"

There are equivalents without them - for example:
FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[:alnum:].-') and be converted to:
FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d 'A-Za-z0-9.-')

Version

  • busybox 1.36.1
  • Lynis version 3.1.1

Expected behavior
Convert all instances of cntrl and alnum to use the equivalent without them

Output
I tested with all the conversions and it works fine.

Additional context
This will make it more portable to other platforms...

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