utils/shell: add + to safe shell characters

`+` does not require escaping in the shell. (Not for Bash and Zsh, at
least.)
This commit is contained in:
Carlo Cabrera 2024-05-18 16:01:07 +08:00
parent a5139bb8e2
commit 6b59c032a7
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -106,7 +106,7 @@ module Utils
zsh: "~/.zshrc",
}.freeze
UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~\n])}
UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~+\n])}
sig { params(str: String).returns(String) }
def csh_quote(str)