Skip to content

Commit ac86a8b

Browse files
committed
Fix parsing of whitespace and backslashes in csvline.
1 parent 4e90d98 commit ac86a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashlib/bashlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ csvline() {
556556
local line field quoted=0 delimiter=,
557557

558558
IFS= read -r line || return
559-
while read -n1 c; do
559+
while IFS= read -rn1 c; do
560560
case $c in
561561
\")
562562
(( quoted = !quoted ))

0 commit comments

Comments
 (0)