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

Replace the naive history command parser with a comprehensive shell syntax parser #36

Open
YiNNx opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@YiNNx
Copy link
Owner

YiNNx commented Sep 2, 2024

The current history commad parser in cmd-wrapped only supports basic shell syntax (e.g., pipeline |, conditional list &&, brace blocks {}, comments #, sudo, and environment variables) with a naive implementation. We need to replace it with a comprehensive shell syntax parser for better parsing results.

Two possible approaches:

  1. Import a crate like rust-shlex or conch-parser.
  2. Implement a shell syntax parser from scratch.
@YiNNx YiNNx added the enhancement New feature or request label Sep 2, 2024
@YiNNx YiNNx changed the title Replace the naive command line parser with a complete shell syntax parser Replace the naive history command parser with a comprehensive shell syntax parser Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant