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
UPDATE: Actually, this seems to be happening with regular fresh invocations in the command line now, I'm not sure what is going on other than there seems to be something wrong with my setup.
Either find or fresh seems to escape its input incorrectly because this happens:
Add `fresh tmux/config\.yml \-\-file\=\~/\.config/tmuxinator/tmux/config\.yml` to /home/user/.freshrc [Y/n]? ^C
Dashes, dots, equal signs, and tildes seem to get backslashes added to them. The resulting line won't execute properly as fresh needs --file, not `--file'.
Add `fresh tmux/config\.yml\ \-\-file\=\~/\.config/tmuxinator/tmux/config\.yml` to /home/user/.freshrc [Y/n]? ^C
The text was updated successfully, but these errors were encountered:
louisch
changed the title
Using find -exec with fresh seems to escape certain characters incorrectly
Using find -exec with fresh seems to escape certain characters incorrectly
Jul 30, 2019
louisch
changed the title
Using find -exec with fresh seems to escape certain characters incorrectly
Fresh seems to be adding backslashes for unknown reasons
Jul 30, 2019
I suspect it's happening inside the parse_fresh_add_args function which seems to add backslashes before characters in arguments that doesn't match /[A-Za-z_0-9]/, but that still doesn't explain why some of my fresh lines with dots or dashes in them work, and some get escaped.
It will exhibit the 'dashes and dots get escaped' problem.
Also, if I use fresh on the command line (not inside the freshrc file), any dots and dashes will definitely get escaped in that case.
UPDATE: Actually, this seems to be happening with regular
fresh
invocations in the command line now, I'm not sure what is going on other than there seems to be something wrong with my setup.When doing something like the following:Eitherfind
orfresh
seems to escape its input incorrectly because this happens:Dashes, dots, equal signs, and tildes seem to get backslashes added to them. The resulting line won't execute properly asfresh
needs--file
, not `--file'.I did try quoting the special characters:But this only seemed to make things worse:The text was updated successfully, but these errors were encountered: