Skip to content

Conversation

@Qelxiros
Copy link
Contributor

  • shred: fix random passes, update documentation, add test
  • shred: update tests

closes #7809

On my system, the number of random passes (as determined by shred -vn$x foo.txt |& grep random | wc -l) is not determined by x/10. While it's true that 25 is the tipping point at which all patterns are used, the pattern is unclear. I'll open a separate issue so I don't dump too much shell output here. For the purpose of this PR, I changed 3 + x/10 to (x/10).max(3) to get closer to GNU behavior.

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/usage_vs_getopt (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit b151e03 into uutils:main Apr 24, 2025
69 of 70 checks passed
@cakebaker
Copy link
Contributor

Thanks!

nickorlow pushed a commit to nickorlow/coreutils that referenced this pull request Jul 17, 2025
* shred: fix random passes, update documentation, add test

* shred: update tests
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.

shred: should use all internal overwrite patterns in 25 passes

2 participants