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

fix: add documentation on substitution and shell variable expansion #38

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

lucas-deangelis
Copy link
Contributor

As discussed in #37. I've kept the explanation in .help() short to avoid either weird formatting or having to switch it to .long_help().

Using double quotes for the REPLACEMENT argument with capture group substitution in shells like Bash or zsh will not work as intended. For example, a "${1}" will be replaced by the content of the shell variable 1 before rnr can read them, resulting in no substitution.

Using double quotes for the REPLACEMENT argument with capture group
substitution in shells like Bash or zsh will not work as intended. For
example, a "${1}" will be replaced by the content of the shell variable 1
before rnr can read them, resulting in no substitution.
Copy link
Owner

@ismaelgv ismaelgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution 😉

README.md Outdated Show resolved Hide resolved
src/app.rs Outdated Show resolved Hide resolved
@lucas-deangelis
Copy link
Contributor Author

Thanks for the review! I've made the two changes.

README.md Show resolved Hide resolved
@ismaelgv ismaelgv merged commit f132c19 into ismaelgv:master Nov 28, 2023
3 checks passed
@lucas-deangelis lucas-deangelis deleted the shell-quoting-doc branch November 28, 2023 21:20
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.

2 participants