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

unexpand: should allow multiple files #5852

Closed
cakebaker opened this issue Jan 17, 2024 · 0 comments · Fixed by #5864
Closed

unexpand: should allow multiple files #5852

cakebaker opened this issue Jan 17, 2024 · 0 comments · Fixed by #5864

Comments

@cakebaker
Copy link
Contributor

GNU unexpand allows multiple files:

$ echo "aaa" > a
$ echo "bbb" > b
$ unexpand a b
aaa
bbb

uutils unexpand, on the other hand, only supports a single file:

$ echo "aaa" > a
$ echo "bbb" > b
$ cargo run unexpand a b
aaa

This issue was mentioned in #5845 (comment) and I think they are already working on a fix.

cakebaker pushed a commit that referenced this issue Jan 24, 2024
… specified

* unexpand: should allow multiple files #5852 and unexpand: show error message if a directory is specified #5845

* test file added for #5845 #5852

* test case test_multiple_files improve

* cakebaker suggestion for a better code #5845 #5852

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant