Shell expansion order is: brace expansion {} first, then tilde expansion ~, then variable expansion $, and finally command substitution $(). Option A shows this exact sequence. The order matters because later expansions can use results of earlier ones.