(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<no>} spids: [77] ) ] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands:[(C {<read>} {<src>} {<dest>})]) body: (command.DoGroup children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName src))} {<Id.Lit_Equals '='>} {<'/dev/null'>} {<Id.Lit_RBracket ']'>} ) (command.ControlFlow token:<Id.ControlFlow_Continue continue>) ] ) (C {<echo>} {(DQ <'Modifying '> ($ Id.VSub_DollarName dest))}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-n>} {(DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT))} {<-a>} {(DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/'>)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'client_dest='> name: client_dest ) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<echo>} {($ Id.VSub_DollarName dest)}) (C {<'/usr/bin/nawk'>} {<-v>} {<Id.Lit_VarLike 'rootdir='> (DQ ($ Id.VSub_DollarName PKG_INSTALL_ROOT)) } {(SQ <'{\n'> <'\t\t\t\t{ print substr($0, length(rootdir)+1)} }'>)} ) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } spids: [156] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'savepath='> name:savepath) op: assign_op.Equal rhs: {($ Id.VSub_DollarName PKGSAV) <'/sed'> (${ Id.VSub_Name client_dest)} spids: [188] ) ] redirects: [] ) ] spids: [127 153] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'savepath='> name:savepath) op: assign_op.Equal rhs: {($ Id.VSub_DollarName PKGSAV) <'/sed'> (${ Id.VSub_Name dest)} spids: [199] ) ] redirects: [] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dirname='> name:dirname) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<dirname>} {($ Id.VSub_DollarName savepath)}) right: <Id.Backtick_Right '`'> ) } spids: [211] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-ne>} {<0>} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<yes>} spids: [237] ) ] redirects: [] ) (command.ControlFlow token:<Id.ControlFlow_Continue continue>) ] spids: [221 234] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-d>} {($ Id.VSub_DollarName dirname)} {<Id.Lit_RBracket ']'>} ) ] ) action: [(C {<mkdir>} {<-p>} {($ Id.VSub_DollarName dirname)})] spids: [248 261] ) ] else_action: [] redirects: [] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<cp>} {($ Id.VSub_DollarName src)} {($ Id.VSub_DollarName savepath)}) (C {<'/usr/sadm/install/scripts/cmdexec'>} {<'/bin/sed'>} {<install>} {($ Id.VSub_DollarName savepath)} {($ Id.VSub_DollarName dest)} ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-ne>} {<0>} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'error='> name:error) op: assign_op.Equal rhs: {<yes>} spids: [317] ) ] redirects: [] ) ] spids: [301 314] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName error))} {<Id.Lit_Equals '='>} {<yes>} {<Id.Lit_RBracket ']'>} ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>}) ] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )