Multiple choice technology programming languages

The right sequence shell command substitution & expansion

  1. {}, ~, $,($)
  2. {}, $, ~,($)
  3. {}, ~,$,($)
  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Shell expansion occurs in a specific order: brace expansion {} happens first, followed by tilde expansion ~, then parameter expansion $ (variables), and finally command substitution $(). This sequence ensures that later expansions can use results from earlier ones.