Multiple choice technology operating systems

What is the output? #!/bin/sh msg1="one" Msg2="$msg1 two" Msg3="$msg2 three" echo $msg3

  1. “””one” two” three”

  2. “one two three”

  3. one two three

  4. “$msg2 three”
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The shell script sets msg1="one", msg2="one two", and msg3="one two three" through variable expansion. When echoed, $msg3 outputs the concatenated string 'one two three' without quotes. The key is understanding how shell variable expansion works.