Setting IFS for proper loop output
This commit is contained in:
parent
4f391a62bd
commit
9c02331baa
@ -1,5 +1,8 @@
|
|||||||
# Bash Subfunction
|
# Bash Subfunction
|
||||||
|
|
||||||
|
oldIFS=$IFS
|
||||||
|
IFS=$'\n'
|
||||||
for line in $(mdls .env); do
|
for line in $(mdls .env); do
|
||||||
echo $line
|
echo $line
|
||||||
done
|
done
|
||||||
|
unset IFS
|
||||||
|
Loading…
Reference in New Issue
Block a user