projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80a540
)
scripts/env: use read -r instead of read
author
Rosen Penev
<rosenp@gmail.com>
Mon, 6 Jan 2020 02:32:38 +0000
(18:32 -0800)
committer
Petr Š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
patch
|
blob
|
history
diff --git
a/scripts/env
b/scripts/env
index 848850a778883a36278ee67aba3939b5d122dbc5..c81fbf8ddc294e1950b9791c88e8f6bb5b01cb55 100755
(executable)
--- 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;;