From 8595017cdfe7e5c365771dd47c8e69a125aebeb1 Mon Sep 17 00:00:00 2001 From: lmat Date: Tue, 13 Feb 2018 16:42:27 -0500 Subject: [PATCH] Quote substitution to ensure no word splitting This is necessary in case IFS is set strangely, or the user has white space in the field delimiter. --- src/awk-csv-parser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/awk-csv-parser.sh b/src/awk-csv-parser.sh index 0cce1a0..23b155a 100755 --- a/src/awk-csv-parser.sh +++ b/src/awk-csv-parser.sh @@ -46,5 +46,5 @@ cat $IN | awk \ -f "$ROOT_DIR/src/csv-parser.awk" \ -v separator=$SEPARATOR \ -v enclosure=$ENCLOSURE \ - -v output_separator=$OUTPUT_SEPARATOR \ + -v output_separator="$OUTPUT_SEPARATOR" \ --source '{csv_parse_and_display($0, separator, enclosure, output_separator)}'