displeased / ddm

ddm - dumb dotfile manager
GNU General Public License v3.0
0 stars 0 forks source link

Fix coreutils dependency #16

Closed displeased closed 2 years ago

displeased commented 2 years ago

One of this project's goals is to provide, on top of simplicity, the best possible compatibility; a user should be able to pick up and use this tool in any environment.

While great success has been had in making the script comply with POSIX sh standards with shellcheck, the project still fails at ensuring portability outside of a GNU coreutils environment. The tool should work in non-GNU environments, ideally being applicable to BSD's, and indeed any operating system that generally respects the POSIX standards, environment.

This issue is being created as a reminder issue to indicate that command line options for UNIX utilities that don't math POSIX standards should be removed. However, due to the size of the code base of the tool further more in-depth review of path handling is required to ensure this compatibility, especially when it comes to creating symlinks.

displeased commented 2 years ago

This was a pretty simple fix. It looks like the POSIX standard has equivalents to the command line arguments that I was using. Anything that didn't have an exact equivalent was easy enough to implement into the logic of ddm.