. ---------------------------------------------------------------------- Ran 1 test in 0.015s OK --- foo {} --- 'hi' {(SQ hi)} --- $var {($ var)} --- ${var} {(${ Id.VSub_Name var)} --- "$var" {(DQ ($ var))} --- "${var}" {(DQ (${ Id.VSub_Name var))} --- $((1+2)) { (word_part.ArithSub left: anode: (arith_expr.Binary op: left: {} right: {} ) right: ) } --- $(echo hi) { (CommandSub left_token: child: (command.Simple blame_tok: more_env: [] words: [{} {}] is_last_cmd: F ) right: ) } --- "$((1+2))" { (DQ (word_part.ArithSub left: anode: (arith_expr.Binary op: left: {} right: {} ) right: ) ) } --- "$(echo hi)" { (DQ (CommandSub left_token: child: (command.Simple blame_tok: more_env: [] words: [{} {}] is_last_cmd: F ) right: ) ) } --- $src/file {($ src) } --- ${src}/file {(${ Id.VSub_Name src) } --- "$src/file" {(DQ ($ src) )} --- "${src}/file" {(DQ (${ Id.VSub_Name src) )} --- $((1+2))$(echo hi) { (word_part.ArithSub left: anode: (arith_expr.Binary op: left: {} right: {} ) right: ) (CommandSub left_token: child: (command.Simple blame_tok: more_env: [] words: [{} {}] is_last_cmd: F ) right: ) } --- ~/src { } --- ~bob/foo { } --- notleading~ { } --- "~/src" {(DQ )} --- "~bob/foo" {(DQ )}