-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Optimize] replace tr #1
Comments
This is basically turning this into a even more bashism shell-script, thus removing even more the capacity to run this on any other shell. Considering the shebang is |
From what I have tested these work totally fine with the sh shebang too |
That sh shebang can be a symlink to any other shell, including dash/fish/ash/sh/..., on many systems that don't even have bash installed. Those variable substitutions will decrease further compatibility. It is to the maintainer to decide if this script is meant only to run on bash, and if so, the shebang needs to be changed to |
@The-Repo-Club Based on what @BeyondMagic is saying, it won't be a good idea to move to not using truncate if we want to keep support for more than bash. |
FIRST
can be replaced with
SECOND
can be replaced with
THIRD
can be replaced with
Could do this too
could just be changed to
And
could be
With these last 2 you can ditch the get_upper and get_lower functions
The text was updated successfully, but these errors were encountered: