
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/12/2019 14.22, Peter Suetterlin wrote:
Andrei Borzenkov wrote:
You can also use another shell (zsh starts right hand side in subprocess so does not have this issue). Zsh is sufficiently compatible with bash to require minimal changes if any.
Thanks for the tip. It indeed just runs without complaints, but also produces the zero output :o
I'm doing it poor man's way now - using a temporary file :P
I do that often :-) Why not an array in bash? declare -a FILENAMES #filling it NUMEROFICHEROS=0 while read FILES ; do FILENAMES[$NUMEROFICHEROS]="$FILES" NUMEROFICHEROS=`expr $NUMEROFICHEROS + 1` done < $1 #using it for((i=0; i<$NUMEROFICHEROS; i++)) do echo $i - ${FILENAMES[$i]} done - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXeUSXQAKCRC1MxgcbY1H 1cz8AJ4rdiGMm8i6TmbOCv2XDAxGckmkywCff20HIm0A2HfREfymOwB6JOy7+mc= =s9wW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org