Skip to content

Conversation

@andreynering
Copy link
Member

@andreynering andreynering commented Apr 9, 2024

Fixes #1551

@andreynering andreynering self-assigned this Apr 9, 2024
@andreynering andreynering force-pushed the bug/fix-special-file-char branch from 2f09a48 to 2ddf82d Compare April 9, 2024 02:06
@andreynering andreynering linked an issue Apr 9, 2024 that may be closed by this pull request
@andreynering andreynering enabled auto-merge (squash) April 9, 2024 02:07
@andreynering andreynering merged commit eb2783f into main Apr 9, 2024
@andreynering andreynering deleted the bug/fix-special-file-char branch April 9, 2024 02:08
Comment on lines +106 to +108
s = strings.ReplaceAll(s, "&", `\&`)
s = strings.ReplaceAll(s, "(", `\(`)
s = strings.ReplaceAll(s, ")", `\)`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not do something along the lines of "shell quote the string"? Instead of escaping individual characters one at a time?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah - something like https://pkg.go.dev/github.com/frioux/[email protected] seems more complete

@vergenzt vergenzt mentioned this pull request Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Having & in Directory name causing problems.

3 participants