Skip to content

Conversation

@Totktonada
Copy link
Contributor

Fixes #2124

@github-actions github-actions bot temporarily deployed to branch-gh-2124-fio-basename-trailing-slash July 8, 2022 22:18 Inactive
@Totktonada
Copy link
Contributor Author

(I'm not sure that the wording is nice, but it is my best tonight. I would like to have this caution in the documentation and open for proposals.)

@Totktonada
Copy link
Contributor Author

Given a full path name, remove all but the final part (the file name).
Also remove the suffix, if it is passed.

Note that the basename of a path with the trailing slash is the empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note that the basename of a path with the trailing slash is the empty
Note that the basename of a path with a trailing slash is an empty

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I should also replace

Example with the trailing slash:

with

Example with a trailing slash:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@Totktonada Totktonada force-pushed the Totktonada/gh-2124-fio-basename-trailing-slash branch from d9133c7 to 01493f5 Compare July 9, 2022 11:25
@github-actions github-actions bot temporarily deployed to branch-gh-2124-fio-basename-trailing-slash July 9, 2022 11:27 Inactive
@patiencedaur patiencedaur merged commit c85c94e into latest Aug 15, 2022
@patiencedaur patiencedaur deleted the Totktonada/gh-2124-fio-basename-trailing-slash branch August 15, 2022 16:51
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

Successfully merging this pull request may close these issues.

[2pt] fio.basename behavior doesn't conform to POSIX

3 participants