. ---------------------------------------------------------------------- Ran 1 test in 0.016s 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: [{} {}] do_fork: T ) 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: [{} {}] do_fork: T ) 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: [{} {}] do_fork: T ) right: ) } --- ~/src { } --- ~bob/foo { } --- notleading~ { } --- "~/src" {(DQ )} --- "~bob/foo" {(DQ )}