-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
unexpand: show error message if a directory is specified #5845
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
Comments
i will try to fix the issue |
biplab@BIPLAB: uutils unexpand only talking the first argument and ignoring the subsequent element |
Yes, you are right, good catch! Do you want to work on it? Or should I open a ticket? |
i am a beginner so better open a ticket i can try but i need time and help |
Hey @biplab5464 See coreutils/src/uu/unexpand/src/unexpand.rs Line 108 in 55b7b2f
the fix to get all the files to process would be here Another recommendation - use triple backticks ``` to start a code block when you are trying to share some code - more help on markdown |
Thank you for Help I have fix the issue for multiple files now i am trying to fix the original issue i am in little problem File::Open is not throwing any error if is a Directory so i tried this way
i was unable to find what error to return |
I think you can return a |
@biplab5464 I opened a ticket for the issue you mentioned in a comment above: #5852 |
… 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>
GNU
unexpand
shows an error if the user specifies a directory and returns1
as exit code:uutils
unexpand
, on the other hand, doesn't output anything and returns0
as exit code:The text was updated successfully, but these errors were encountered: