scripts/env: use read -r instead of read
authorRosen Penev <rosenp@gmail.com>
Mon, 6 Jan 2020 02:32:38 +0000 (18:32 -0800)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 11:33:28 +0000 (13:33 +0200)
read mangles backslashes.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
scripts/env

index 848850a778883a36278ee67aba3939b5d122dbc5..c81fbf8ddc294e1950b9791c88e8f6bb5b01cb55 100755 (executable)
@@ -42,7 +42,7 @@ ask_bool() {
                local VAL
 
                echo -n "$* ($defstr): "
-               read VAL
+               read -r VAL
                case "$VAL" in
                        y*|Y*) val=0;;
                        n*|N*) val=1;;