0

Shell Scripting

Find the ouput for the following shell program. #/bin/sh a=10 until [ $a -lt 0] do echo "The output inside loop is echo $a a=$[ a+1 ] done echo "The output outside loop is: echo $a I think the answer from 10 to infinity .. right??

3rd Jul 2019, 8:27 AM
Azza
2 odpowiedzi
+ 4
I think it should be a-1, the program intend to count from 10 to 0 else it will be an infinity loop as you say
3rd Jul 2019, 8:36 AM
✳AsterisK✳
✳AsterisK✳ - avatar
0
Actually I also said so .. Thank you *AsterisK*
3rd Jul 2019, 9:08 AM
Azza