Fix bug caused by inconsistent preservation of line endings by 'sed'.
diff --git a/functions.sh b/functions.sh
index 0ff0a0e..8a81b8b 100755
--- a/functions.sh
+++ b/functions.sh
@@ -156,10 +156,10 @@
_substring_replace_replacement="$1"
shift
- _substring_replace_result=$(printf '%s' "$_substring_replace_str" | \
+ _substring_replace_result=$(printf '%s\n' "$_substring_replace_str" | \
sed -e "s!$_substring_replace_needle!$_substring_replace_replacement!g")
- printf '%s\n' "$_substring_replace_result"
+ printf '%s' "$_substring_replace_result"
}
gen_nlspath() {