Setting IFS for proper loop output

This commit is contained in:
Mike Holloway committed 2022-03-26 14:22:50 -04:00
1 parent 4f391a62bd
commit 9c02331baa
1 file changed
+3
+3
View File
@@ -1,5 +1,8 @@
# Bash Subfunction
oldIFS=$IFS
IFS=$'\n'
for line in $(mdls .env); do
echo $line
done
unset IFS