From 7b99ac58ab4861e5c5dafda8c55801d48dc41e2b Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Sat, 21 Apr 2018 02:34:43 -0500 Subject: [PATCH] Remove ~ from UNSAFE_SHELL_CHAR --- Library/Homebrew/utils/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index 56ea7fd1e6..7799dc1db1 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -72,7 +72,7 @@ module Utils zsh: "~/.zshrc", }.freeze - UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@\n])} + UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~\n])} def csh_quote(str) # ruby's implementation of shell_escape