Output of loop variable shows different value than expected
Output of loop variable shows different value than expected Imagine I have two folders in my current working directory: back/ and front/. I am trying to enter inside each of them and do some stuff. From the simple script below: for dir in */ ; do echo "$(dir)" done I was expecting an output like: …