(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:DIR) op: assign_op.Equal rhs: { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:6) command_list: (command.CommandList children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {(cd)} { (DQ (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:11) command_list: (command.CommandList children: [ (C {(dirname)} { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: BASH_SOURCE span_id: 17 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithWord w: {(Id.Lit_Digits 0)} ) ) ) ) } ) ] ) ) ) } ) (C {(pwd)}) ] ) ] ) ) ) } spids: [4] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:REFMT) op: assign_op.Equal rhs: {(DQ )} spids: [35] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: {($ Id.VSub_DollarName '$DIR') (/refmt_impl.native)} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:50) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:REFMT) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName '$DIR') (/refmt_impl.native))} spids: [55] ) ] ) ] spids: [40 52] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: {($ Id.VSub_DollarName '$DIR') (/refmt)} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:74) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:REFMT) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName '$DIR') (/refmt))} spids: [79] ) ] ) ] spids: [64 76] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_z child:{($ Id.VSub_DollarName '$REFMT')}) ) terminator: (Token id:Id.Op_Semi val:';' span_id:97) ) ] action: [ (command.Simple words: [{(echo)} {(DQ ("Couldn't find refmt"))}] redirects: [ (redir.Redir op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:102) fd: -1 arg_word: {(2)} ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:112) arg_word: {(1)} ) ] spids: [88 99] ) ] ) (C {($ Id.VSub_DollarName '$REFMT')} {($ Id.VSub_At '$@')} {(-recoverable)} {(true)} {(-parse)} {(re)}) ] )