From 8b8b48ef555477f707db1352e8c5adf6267a59f6 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 14 Jun 2015 10:24:40 -0700 Subject: [PATCH] Make quoted tilde message suggest $HOME instead. --- ShellCheck/Analytics.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index ea1df8d..a3f51a0 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -1922,7 +1922,7 @@ prop_checkTildeInQuotes5 = verifyNot checkTildeInQuotes "echo '/~foo/cow'" prop_checkTildeInQuotes6 = verifyNot checkTildeInQuotes "awk '$0 ~ /foo/'" checkTildeInQuotes _ = check where - verify id ('~':'/':_) = warn id 2088 "Note that ~ does not expand in quotes." + verify id ('~':'/':_) = warn id 2088 "Tilde does not expand in quotes. Use $HOME." verify _ _ = return () check (T_NormalWord _ (T_SingleQuoted id str:_)) = verify id str