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