Skip to content

Fresh seems to be adding backslashes for unknown reasons #158

Description

@louisch

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:

❯ find tmux -name '*.yml' -exec fresh {} --file=~/.config/tmuxinator/{} ';'

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'.

I did try quoting the special characters:

❯ find tmux -name '*.yml' -exec fresh '{} --file=~/.config/tmuxinator/{}' ';'

But this only seemed to make things worse:

Add `fresh tmux/config\.yml\ \-\-file\=\~/\.config/tmuxinator/tmux/config\.yml` to /home/user/.freshrc [Y/n]? ^C

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions