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

tsort: returns error when input is dir - same as GNU tsort #5860

Merged
merged 5 commits into from
Jan 19, 2024
Merged

tsort: returns error when input is dir - same as GNU tsort #5860

merged 5 commits into from
Jan 19, 2024

Conversation

SaHHiiLL
Copy link
Contributor

fix: #5853

@cakebaker
Copy link
Contributor

Can you please add a test so we don't regress in the future?

@SaHHiiLL
Copy link
Contributor Author

sure!

@SaHHiiLL
Copy link
Contributor Author

lmk if there's something else I can put instead of . for the test

@cakebaker
Copy link
Contributor

I think . is fine.

If you want to specify a concrete directory name, you can use something like:

let (at, mut ucmd) = at_and_ucmd!();
at.mkdir("dirname");

And then use ucmd instead of new_ucmd!.

@SaHHiiLL
Copy link
Contributor Author

Alright, That seems to work. Thanks for the help!!

@cakebaker cakebaker merged commit 746a7b1 into uutils:main Jan 19, 2024
60 of 61 checks passed
@cakebaker
Copy link
Contributor

Thanks for your PR :)

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.

tsort: show error if directory is specified
2 participants