Greg Wooledge <wooledg <at> eeg.ccf.org> writes: > Just in case, it needs to be pointed out that using ls in this way is > NOT a safe operation, since filenames may contain newlines (or other > characters that ls may choose to represent with a ? instead of leaving > intact, depending on the implementation). Newlines will completely > break any line-based approach, and characters that are munged into ? > will break anything that relies on the output of ls for that filename. >
'ls' wasn't my task (I was more interested in syntax dissertation) but thanks for safeness and performance hints, they are always precious. Greetings, Francesco