xvoland / Extract

Bash/Zsh function for extract: .zip, .rar, .bz2, .gz, .zlib, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, etc.
MIT License
472 stars 82 forks source link

Improve POSIX compliance #20

Closed paper42 closed 4 years ago

paper42 commented 4 years ago

/bin/sh always links yo a POSIX compliant shell and the script is POSIX compliant, so why not use it?

xvoland commented 4 years ago

/bin/sh is not always a symlink to /bin/bash

paper42 commented 4 years ago

That's true, but as I wrote in the last comment it always points to a POSIX conpliant shell. For example Alpine Linux points to ash, but with these changes in the PR the script can run even on those shells.