Skip to content

Doc glitch about -f and is_file #299

@jimav

Description

@jimav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions