Red Hat Bugzilla – Bug 16618
problem with ksh
Last modified: 2008-05-01 11:37:58 EDT
Thanks fro your answer, but i 've still a problem !!!
it-s whith ksh (the problem is ok with zsh, but zsh have problem with
arrays (i've programs to prove it !)
The value next the loop is the same than before the loop, and not the
value at the end of the loop !!!
Try this short program, it count normally the number of file in a
directory (ls |wc -l equivalent), I use this structure in multiple shells
to administrate Oracle databases, and i'm very embarassed !!!
thanks to help me (sorry for my poor english)
ls | while read FILE
echo 'end of loop'
You are piping it into something which can the be a separate process... user
i'm not ok with your answer, because, when i work on sun Solaris or HP-UX
this command is OK !
So for me , there's a problem with linux...
That something works that way in some places, does not mean that everything
needs to work that way... e.g, take a look at #8894 (which also concerns the
read facility, BTW). If you disagree, I suggest you contact the author