relpipe-data/examples-out-bash.xml
branchv_0
changeset 290 e73765513aec
parent 244 d4f401b5f90c
--- a/relpipe-data/examples-out-bash.xml	Sat Jan 04 20:21:45 2020 +0100
+++ b/relpipe-data/examples-out-bash.xml	Sat Jan 11 20:24:43 2020 +0100
@@ -19,7 +19,7 @@
 			We will define a function that will help us with reading the <code>\0</code>-separated values and putting them into shell variables:
 		</p>
 		
-		<m:pre jazyk="bash"><![CDATA[read_nullbyte() { for v in "$@"; do export "$v"; read -r -d '' "$v"; done }]]></m:pre>
+		<m:pre jazyk="bash"><![CDATA[read_nullbyte() { local IFS=; for v in "$@"; do export "$v"; read -r -d '' "$v"; done }]]></m:pre>
 		
 		<!--
 			This version will not require the last \0: