| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
⚖️ a portable, POSIX-compliant implementation of Bash’s -ef test
Make sure the executable named samefile in bin/ is either
git clone --depth 1 https://github.com/LucasLarson/samefile "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/plugins/samefile# not this
[ path/to/some/file -ef path/to/another/file ]
# and definitely not this
[[ path/to/some/file -ef path/to/another/file ]]
# but rather this
samefile path/to/some/file path/to/another/file
# or this
samefile --verbose path/to/some/file path/to/another/file
# or this
samefile -v path/to/some/file path/to/another/file
# returns a `0` exit status on success and `1` for failure
# just like `[`, `[[`, and `test`Bash’s -ef and samefile both check that two files aren’t just similar, but are
| Back | FazBrowse Home | New Git URL |