You are right. I had misread the code because passing the entire list a loop is iterating over instead of the current item is not a mistake I have ever made.
The change I suggested is still needed, since our questioner is currently iterating over a list, but only passing a single value to his output routine.
In reply to Re^3: using basename on a list of filesnames
by jcb
in thread using basename on a list of filesnames
by flieckster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |