[OpenWrt-Devel] [PATCH 5/5] scripts/env: use read -r instead of read
Rosen Penev
rosenp at gmail.com
Tue Dec 31 21:01:46 EST 2019
read mangles backslashes.
Found with shellcheck.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
scripts/env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/env b/scripts/env
index 848850a778..c81fbf8ddc 100755
--- a/scripts/env
+++ b/scripts/env
@@ -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;;
--
2.24.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list