Why does my Bash for loop fail when run with bash or sudo?
I can run this loop directly and it lists the files in the current directory: for i in *; do echo "$i"; done However, trying to run it…
I can run this loop directly and it lists the files in the current directory: for i in *; do echo "$i"; done However, trying to run it…