You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk rewrite leaves a bash -c script unrewritten when escaped double quotes hold RTK_DISABLED= as data #5175
rtk rewrite does not rewrite a bash -c "…" script when a double-quoted assignment inside it holds RTK_DISABLED= as data in escaped double quotes. The same script with the data in single quotes is rewritten.
shell_wrapper_script_opts_out in src/discover/registry.rs reads the script from its raw text, before the outer double quotes are unescaped. In MSG=\"use RTK_DISABLED=1\"; git status the \" pairs are escaped characters outside any quote, so word_end_from splits the value at its blanks and the word RTK_DISABLED=1\"; starts with RTK_DISABLED=. The wrapper is taken as opted out.
Effect
Conservative: nothing is wrongly rewritten, the command runs as typed, and its output is not filtered. The cost is the lost savings for that shape.
Open question
Reading the script after its outer quotes are resolved would give both quoting depths the same words. I am offering the work, not asking anyone to take it on.
Activity