Skip to content

du: remove unix path assumption #625

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

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

mknos
Copy link
Contributor

@mknos mknos commented May 29, 2024

  • du had a documented bug where '/' was the path separator
  • As done in other scripts, make use of catfile() when joining a directory name to a filename
  • This works the same on my Linux system, but in theory it will work better on windows
  • catfile() can handle directory names with a redundant separator at the end, so a conditional expression is not needed
  • Remove global variable $dirsep

* du had a documented bug where '/' was the path separator
* As done in other scripts, make use of catfile() when joining a directory name to a filename
* This works the same on my Linux system, but in theory it will work better on windows
* Remove global variable $dirsep
@github-actions github-actions bot added Type: enhancement improve a feature that already exists Priority: low get to this whenever Program: du The du program labels May 29, 2024
@briandfoy briandfoy merged commit 0f95d87 into briandfoy:master May 29, 2024
@briandfoy briandfoy self-assigned this May 29, 2024
@briandfoy briandfoy added Status: accepted The fix is accepted Type: bug an existing feature does not work and removed Type: enhancement improve a feature that already exists Priority: low get to this whenever labels May 29, 2024
@briandfoy briandfoy added Status: released there is a new release with this fix and removed Status: accepted The fix is accepted labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Program: du The du program Status: released there is a new release with this fix Type: bug an existing feature does not work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants