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

Doc glitch about -f and is_file #299

Open
jimav opened this issue Jan 18, 2025 · 1 comment
Open

Doc glitch about -f and is_file #299

jimav opened this issue Jan 18, 2025 · 1 comment

Comments

@jimav
Copy link

jimav commented Jan 18, 2025

Current docs say

Note: "is_file" is not "-f" because "-f" is not the opposite of "-d".
"-f" means "plain file", excluding symlinks, devices, etc. that often
can be read just like files.

This isn't quite correct because -f symlink_to_file returns true.

Suggest changing the wording to:

"-f" means a plain file (or a symlink to a plain file), but not devices, etc. that often
can be read just like files.
@ap
Copy link
Contributor

ap commented Jan 18, 2025

Seems to me that symlinks are sort of irrelevant and should just be left out of the text. Something like

C<-f> means "plain file", excluding filesystem objects like devices
and sockets that often can be read just like files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants