Multiple choice

What is the order of evaluation in bash?

  1. History, Variables, ARP Table, RAM, Disk

  2. PEMDAS

  3. Redirections, Aliases, Para Expansion, Explorer.exe

  4. Redirection, Aliases, Para Expansion, CMD Subsitution, Shell

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

Bash follows a specific order of expansion and evaluation: brace expansion, tilde expansion, parameter/variable expansion, command substitution, arithmetic expansion, word splitting, and pathname expansion.