. ---------------------------------------------------------------------- Ran 1 test in 0.011s OK ('\n---', 'foo') {(foo)} ('\n---', "'hi'") {(SQ )} ('\n---', '$var') {($ VSub_DollarName '$var')} ('\n---', '${var}') {(${ VSub_Name var)} ('\n---', ' "$var" ') {(DQ ($ VSub_DollarName '$var'))} ('\n---', ' "${var}" ') {(DQ (${ VSub_Name var))} ('\n---', ' $((1+2)) ') { (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w:{(Lit_Digits 1)}) right: (arith_expr.ArithWord w:{(Lit_Digits 2)}) ) spids: [1 6] ) } ('\n---', ' $(echo hi) ') { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(echo)} {(hi)})]) left_token: spids: [1 5] ) } ('\n---', ' "$((1+2))" ') { (DQ (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w:{(Lit_Digits 1)}) right: (arith_expr.ArithWord w:{(Lit_Digits 2)}) ) spids: [2 7] ) ) } ('\n---', ' "$(echo hi)" ') { (DQ (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(echo)} {(hi)})]) left_token: spids: [2 6] ) ) } ('\n---', ' $src/file ') {($ VSub_DollarName '$src') (/file)} ('\n---', ' ${src}/file ') {(${ VSub_Name src) (/file)} ('\n---', ' "$src/file" ') {(DQ ($ VSub_DollarName '$src') (/file))} ('\n---', ' "${src}/file" ') {(DQ (${ VSub_Name src) (/file))} ('\n---', ' $((1+2))$(echo hi) ') { (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w:{(Lit_Digits 1)}) right: (arith_expr.ArithWord w:{(Lit_Digits 2)}) ) spids: [1 6] ) (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(echo)} {(hi)})]) left_token: spids: [7 11] ) } ('\n---', ' ~/src ') {(Lit_TildeLike '~') (/src)} ('\n---', ' ~bob/foo ') {(Lit_TildeLike '~bob') (/foo)} ('\n---', 'notleading~') {(notleading) (Lit_TildeLike '~')} ('\n---', ' "~/src" ') {(DQ ('~/src'))} ('\n---', ' "~bob/foo" ') {(DQ ('~bob/foo'))}