Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BigD2244 opened this issue Aug 27, 2024 · 1 comment

Comments

@BigD2244
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@BigD2244 and others