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

Shred: implement --random-source and other improv #6243

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

sylvestre
Copy link
Contributor

No description provided.

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker changed the title Shuff: implement --random-source and other improv Shuf: implement --random-source and other improv Apr 16, 2024
@cakebaker cakebaker changed the title Shuf: implement --random-source and other improv Shred: implement --random-source and other improv Apr 16, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

While playing with shred I noticed some different behavior between uutils shred and GNU shred:

$ echo "random content" > source

$ echo "abc" > test_file
$ cargo run shred --verbose --random-source=source test_file
shred: test_file: pass 1/3 (random)...
shred: test_file: pass 2/3 (random)...
shred: test_file: pass 3/3 (random)...
$ echo $?
0

$ echo "abc" > test_file
$ shred --verbose --random-source=source test_file
shred: test_file: pass 1/3 (random)...
shred: ‘source’: end of file
$ echo $?
1

Copy link

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?

@sylvestre sylvestre force-pushed the shuff-random branch 2 times, most recently from 730cc16 to 6ab82da Compare December 2, 2024 09:11
Copy link

github-actions bot commented Dec 4, 2024

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

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.

2 participants