Jo King a écrit : >> thanks for reply. agree it's not a >> bug with bash. >> >> i am inclinded to agree with the comments but bash is >> popular and attracts a lot of newbies into scripting - a bit >> of smart 'correction' of their wrong ways would at least >> keep the cpu available for other processes (even a sleep for >> 100ms would make a huge difference).
"Newbies" should just stay clear from developing any advanced shell script. There is way too much rope too hang themselves and your example is just one among many other ways. There is plenty other, newer programming environments that are far easier and safer to play with and learn. By the way the same hold for configuring firewalls. It becomes even worse when it relates to security. ("Security by newbies"... ahem, really?) Cheers, Marc