Repair a skipped update

A developer finds that this Bash counter loop does not finish. Assume automatic exit on an unsuccessful command is disabled and no external interruption occurs. Which statements correctly describe the proposed changes? Select every correct statement. Evaluate each change independently.


Shell
n=0
while (( n < 4 )); do
  if (( n == 1 )); then
    continue
  fi
  (( n += 1 ))
done
Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Bash Control Structures Questions: