1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-25 05:12:14 +02:00

Don't mangle backspaces in input

Shellcheck test SC2162.
This commit is contained in:
Victor Engmark
2018-11-17 07:09:34 +13:00
parent 701f1264f4
commit ea0be30283

View File

@@ -3,7 +3,7 @@
set -o errexit -o nounset -o pipefail
commentChar="#"
while read line
while read -r line
do
firstChar="${line:0:1}"
if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]