-
-
Save d630/3acc781b41e16aaaa8452651203d241d to your computer and use it in GitHub Desktop.
bash: PS as WORD in for-loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for I in <(ls -1ld /) <(ls -l1d /) | |
do | |
exec 3<"$I" || exec 3<&-; | |
echo is:$I | |
o=$(cat 0<&3) | |
echo $o | |
done |
workaround:
for I in <(ls -1ld /)\ <(ls -l1d /)
do
cat ${I}
done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gets: