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

Remove every bashism #282

Merged
merged 2 commits into from
Sep 15, 2024
Merged

Conversation

nnyyxxxx
Copy link
Contributor

@nnyyxxxx nnyyxxxx commented Sep 6, 2024

Type of Change

  • New feature
  • Bug fix
  • Refactoring
  • Hotfix

Description

I replaced every bashism with posix alternatives, I removed the custom color codes that were in almost every file (utilities), I refactored a lot of stuff (utilities), and I made it rely on the common script color codes instead of the custom ones (utilities).

Testing

Tested on bash, zsh, and dash.

Rechecked every file using checkbashisms package

Impact

Greatly impacts the changed sections.

Issue related to PR

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • My changes generate no errors/warnings/merge conflicts.

@nnyyxxxx nnyyxxxx mentioned this pull request Sep 6, 2024
12 tasks
@nnyyxxxx nnyyxxxx force-pushed the testing-6 branch 2 times, most recently from c5b8ea3 to 9172083 Compare September 6, 2024 07:21
@nnyyxxxx
Copy link
Contributor Author

nnyyxxxx commented Sep 6, 2024

https://mywiki.wooledge.org/Bashism

Here is the site I used to squeeze out these bashisms. Might be helpful to Chris in future development.

@nnyyxxxx
Copy link
Contributor Author

nnyyxxxx commented Sep 7, 2024

Just squeezed out the last bashisms out of dwm-titus. Ready for review / merge.

@ChrisTitusTech
Copy link
Owner

Sorry for the inconvenience. We had a massive restructure of the codebase to improve future development. Because of this can you update your PR to the new structure. Thank you for your assistance and contribution.

@nnyyxxxx nnyyxxxx reopened this Sep 12, 2024
@nnyyxxxx
Copy link
Contributor Author

Finished.

@adamperkowski adamperkowski mentioned this pull request Sep 14, 2024
5 tasks
@jeevithakannan2
Copy link
Contributor

@nnyyxxxx Please include this issue also #383

@nnyyxxxx
Copy link
Contributor Author

@nnyyxxxx Please include this issue also #383

Thanks.

@ChrisTitusTech
Copy link
Owner

Thanks so much looks awesome @nnyyxxxx

@ChrisTitusTech ChrisTitusTech merged commit 43740a4 into ChrisTitusTech:main Sep 15, 2024
1 check passed
@nnyyxxxx nnyyxxxx deleted the testing-6 branch September 15, 2024 23:57
@ChrisTitusTech ChrisTitusTech added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants