Question: Consider the following code which is part of a shell script. Assume the value of the variable MSG is not an empty string when the

 Consider the following code which is part of a shell script.

Consider the following code which is part of a shell script. Assume the value of the variable MSG is not an empty string when the for loop is executed. myprog is a valid program that is in the current directory. for a in ' $MSG ' do - /myprog $a done Which of the following are correct (Choose the most correct ONE answer and ONLY that) The statement inside the for loop is executed only once. The for loop will perform exactly two iterations of the statements inside it. The for loop will perform as many iterations of the statements inside it as there are words (space delimited) in the value stored in the variable MSG. The for loop will not end up executing any statements that is inside the loop. None of these options are correct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!