From 703d665a32ac4be3b6951ce7ef274b840843778b Mon Sep 17 00:00:00 2001 From: William Melody Date: Wed, 1 Mar 2017 12:05:59 -0800 Subject: [PATCH] Use `read` with `-r` option. ShellCheck SC2162: read without -r mangle backslashes https://github.com/koalaman/shellcheck/wiki/SC2162 --- hosts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts b/hosts index 6e40fef..f7515df 100755 --- a/hosts +++ b/hosts @@ -523,12 +523,12 @@ desc() { [[ -z ${1} ]] && _die printf "desc: No command name specified.\n" if [[ -n ${2:-} ]] then - read -d '' "_desc_${1}" <