-
Notifications
You must be signed in to change notification settings - Fork 9
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
Missing is_symlink
check?
#9
Comments
@fitzgen I'd be happy to submit a PR for this if you agree that it should check for being a symlink. But perhaps it should check to see if the symlink target exists and is a file? |
Looking further, the |
For my usecase when I wrote this crate, I would have been fine with following symlinks and essentially answering whether the thing that the symlink points to was executable or not. I realize that may or may not be what other users want. Maybe makes sense to have it configurable. |
This is
is_executable
ofis_executable
: https://github.com/fitzgen/is_executable/blob/master/src/lib.rs#L90-L97This is
is_executable
ofnushell
: https://github.com/nushell/nushell/blob/b39dda05500d92b627685b8251bfe416dc621c08/crates/nu-completion/src/command.rs#L73-L86If you compare them you will notice that nushell has an additional
is_symlink()
check butis_executable
'sis_executable
does not. Is this intentional or is there potentially an unintended omission?The text was updated successfully, but these errors were encountered: