Skip to content

Use printf instead of echo to output flags #12704

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

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

cjschneider2
Copy link
Contributor

@cjschneider2 cjschneider2 commented Jun 23, 2023

Fixes: #12677

using printf here prevents an error when outputting the filtered flag -e as doing this with echo "-e" doesn't output anything (deleting the option we wanted to filter).

This is explained here better than I ever could: https://unix.stackexchange.com/a/65819

Fixes: elixir-lang#12677

using printf here prevents an error when outputting the filtered flag `-e` as doing with with `echo "-e"` doesn't output anything (deleting the option we wanted to filter). 

This is explained here better than I ever could: https://unix.stackexchange.com/a/65819
@josevalim josevalim merged commit 73b65ec into elixir-lang:main Jun 23, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

josevalim pushed a commit that referenced this pull request Jun 23, 2023
Fixes #12677.

Using printf here prevents an error when outputting the filtered flag
`-e` as doing with with `echo "-e"` doesn't output anything
(deleting the option we wanted to filter). 

More info: https://unix.stackexchange.com/a/65819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Test fails on OTP 26, Elixir 1.15.0
2 participants