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