Skip to content
Permalink
Browse files

make-single-file-spm: support lines ending in `n` (#1251)

Motivation:

make-single-file-spm has a weird bug where it would chop off trailing
`n` characters in all lines due to a badly set `IFS` bash variable.

Modifications:

Set `IFS=""` which is correct.

Result:

make-single-file-spm will not chop off trailing `n`s.
  • Loading branch information
weissi committed Nov 18, 2019
1 parent ff01888 commit 9dd9f36bfda550c160727607bb5114de819d9b5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 dev/make-single-file-spm
@@ -151,7 +151,7 @@ all_dependencies=()
all_dependency_modules=()
number_of_lines=0

while IFS="\n" read -r line; do
while IFS="" read -r line; do
if [[ "$line" =~ ^//\ MODULE:\ (.*)$ ]]; then
module=${BASH_REMATCH[1]}

0 comments on commit 9dd9f36

Please sign in to comment.
You can’t perform that action at this time.