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

Add shell globbing #352

Merged
merged 6 commits into from
Jun 16, 2022
Merged

Add shell globbing #352

merged 6 commits into from
Jun 16, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jun 15, 2022

Add support to the shell of filename expansion or globbing for * and ? wildcard characters, where a pattern given in an argument of a command will be replaced by files matching the pattern.

  • * means zero or more chars except /
  • ? means any char except /

For example /tmp/*.txt will match any files with the txt extension inside /tmp, and a?c.txt will match a file named abc.txt.

@vinc
Copy link
Owner Author

vinc commented Jun 15, 2022

Only the delete command support multiple filenames as arguments for now.

@vinc vinc marked this pull request as ready for review June 16, 2022 19:28
@vinc vinc merged commit 783a419 into trunk Jun 16, 2022
@vinc vinc deleted the feature/shell-globbing branch June 16, 2022 19:29
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.

1 participant