Open peterbe opened 2 years ago
I use zsh but I think it's the same as bash. You can either escape each filename with quotation marks, but you can also just use \
on each control character that's problematic. E.g. ls foo-\(bar\).md
will work the same as ls "foo-(bar).md"
. No idea which one is best.
Is your feature request related to a problem? Please describe. Escaping names.
Imaging a PR that contains a change to a file that has brackets in it. E.g.
foo-(bar).md
And in my Actions workflow I do this:what that translates to is:
which will fail with:
But if it was escaped, it would work:
You can't change the workflow Yaml to...
because although
bash
would no longer crash, you'd end up with multiple files being treated as one long string with a space in it. E.g.Describe the solution you'd like That the string
outputs.files
escaped each and every file. Perhaps something like this:Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.