(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BLOCK_SIZE='> name:BLOCK_SIZE)
                  op: assign_op.Equal
                  rhs: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''> ch:'\'') <1>}
                  spids: [54]
                )
              ]
              redirects: []
            )
          terminator: <Id.Op_Semi _>
        )
        (C {<export>} {<BLOCK_SIZE>})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'TIME_STYLE='> name:TIME_STYLE)
          op: assign_op.Equal
          rhs: {(SQ <'+%b %e  %Y\n'> <'%b %e %H:%M'>)}
          spids: [79]
        )
      ]
      redirects: []
    )
    (C {<export>} {<TIME_STYLE>})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<echo>} {(DQ ($ Id.VSub_DollarName LANG))})
                        (command.Simple
                          words: [{<grep>} {<-i>} {(DQ <'utf-*8'> <Id.Lit_Dollar '$'>)}]
                          redirects: [
                            (redir
                              op: <Id.Redir_Great '>'>
                              loc: (redir_loc.Fd fd:1)
                              arg: {<'/dev/null'>}
                            )
                          ]
                          more_env: []
                          do_fork: T
                        )
                      ]
                      negated: F
                      stderr_indices: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SYM_ARROW='> name:SYM_ARROW)
                  op: assign_op.Equal
                  rhs: {(DQ <'▪▶'>)}
                  spids: [119]
                )
              ]
              redirects: []
            )
          ]
          spids: [93 116]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SYM_ARROW='> name:SYM_ARROW)
              op: assign_op.Equal
              rhs: {(DQ <'->'>)}
              spids: [127]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ESC='> name:ESC)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: (C {<printf>} {(SQ <'\\033'>)})
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [135]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.Pipeline
                          children: [
                            (command.Simple
                              words: [{<tput>} {<setaf>} {<1>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                                (redir
                                  op: <Id.Redir_GreatAnd '2>&'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<1>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          ]
                          negated: T
                          stderr_indices: []
                        )
                        (command.Pipeline
                          children: [
                            (command.Simple
                              words: [{<tput>} {<AF>} {<1>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                                (redir
                                  op: <Id.Redir_GreatAnd '2>&'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<1>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          ]
                          negated: T
                          stderr_indices: []
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_when='> name:color_when)
                  op: assign_op.Equal
                  rhs: (rhs_word.Empty)
                  spids: [188]
                )
              ]
              redirects: []
            )
          ]
          spids: [152 185]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {<-t>} {<1>})
                        (command.Pipeline
                          children: [
                            (C {<echo>} {(DQ ($ Id.VSub_Star '*'))})
                            (command.Simple
                              words: [
                                {<grep>}
                                {<-E>}
                                {<-->}
                                {(DQ <'--color( |=always|'> <Id.Lit_Dollar '$'> <')'>)}
                              ]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          ]
                          negated: F
                          stderr_indices: []
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_when='> name:color_when)
                  op: assign_op.Equal
                  rhs: {<always>}
                  spids: [238]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<tput>} {<bold>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                                (redir
                                  op: <Id.Redir_GreatAnd '2>&'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<1>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BLD='> name:BLD)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<bold>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [261]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RST='> name:RST)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<sgr0>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [271]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'HLI='> name:HLI)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<smso>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [281]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [242 255]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Simple
                              words: [{<tput>} {<md>}]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                                (redir
                                  op: <Id.Redir_GreatAnd '2>&'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<1>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'BLD='> name:BLD)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<md>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [310]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RST='> name:RST)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<me>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [320]
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'HLI='> name:HLI)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<so>})
                                right: <Id.Backtick_Right '`'>
                              )
                            }
                          spids: [330]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [291 304]
                )
              ]
              else_action: []
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LS_HLI='> name:LS_HLI)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {(DQ ($ Id.VSub_DollarName HLI))})
                              (C {<sed>} 
                                {
                                  (DQ <'s/'> ($ Id.VSub_DollarName ESC) <Id.Lit_BadBackslash '\\'> <'['> 
                                    <Id.Lit_BadBackslash '\\'> <'(.*'> <Id.Lit_BadBackslash '\\'> <')m/'> <Id.Lit_BadBackslash '\\'> <'1/'>
                                  )
                                }
                              )
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [343]
                )
              ]
              redirects: []
            )
          ]
          spids: [193 227]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_when='> name:color_when)
              op: assign_op.Equal
              rhs: {<auto>}
              spids: [382]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ls='> name:ls)
          op: assign_op.Equal
          rhs: {<ls>}
          spids: [388]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DPipe Id.Op_DPipe]
      children: [
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Sentence
              child: 
                (command.Simple
                  words: [{<ls>} {<--color>} {<-d>} {<.>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {<'/dev/null'>}
                    )
                    (redir
                      op: <Id.Redir_GreatAnd '2>&'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<1>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Sentence
              child: 
                (command.AndOr
                  ops: [Id.Op_DAmp]
                  children: [
                    (command.Simple
                      words: [{<gls>} {<--color>} {<-d>} {<.>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'/dev/null'>}
                        )
                        (redir
                          op: <Id.Redir_GreatAnd '2>&'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<1>}
                        )
                      ]
                      more_env: []
                      do_fork: T
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ls='> name:ls)
                          op: assign_op.Equal
                          rhs: {<gls>}
                          spids: [433]
                        )
                      ]
                      redirects: []
                    )
                  ]
                )
              terminator: <Id.Op_Semi _>
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NONGNU='> name:NONGNU)
              op: assign_op.Equal
              rhs: {<1>}
              spids: [441]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName color_when))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName NONGNU))} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (BraceGroup
                          left: <Id.Lit_LBrace '{'>
                          children: [
                            (command.Sentence
                              child: (C {<colorls>} {<-d>} {<.>})
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          redirects: [
                            (redir
                              op: <Id.Redir_Great '>'>
                              loc: (redir_loc.Fd fd:1)
                              arg: {<'/dev/null'>}
                            )
                            (redir
                              op: <Id.Redir_GreatAnd '2>&'>
                              loc: (redir_loc.Fd fd:2)
                              arg: {<1>}
                            )
                          ]
                          right: <Id.Lit_RBrace '}'>
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ls='> name:ls)
                              op: assign_op.Equal
                              rhs: {<colorls>}
                              spids: [492]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.Simple
                          words: [{($ Id.VSub_DollarName ls)} {<-G>} {<-d>} {<.>}]
                          redirects: [
                            (redir
                              op: <Id.Redir_Great '>'>
                              loc: (redir_loc.Fd fd:1)
                              arg: {<'/dev/null'>}
                            )
                            (redir
                              op: <Id.Redir_GreatAnd '2>&'>
                              loc: (redir_loc.Fd fd:2)
                              arg: {<1>}
                            )
                          ]
                          more_env: []
                          do_fork: T
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'color_opt='>
                                  name: color_opt
                                )
                              op: assign_op.Equal
                              rhs: {<-G>}
                              spids: [515]
                            )
                          ]
                          redirects: []
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName color_when))} 
                          {<Id.Lit_Equals '='>} {(DQ <always>)} {<Id.Lit_RBracket ']'>}
                        )
                        (BraceGroup
                          left: <Id.Lit_LBrace '{'>
                          children: [
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: 
                                        (sh_lhs_expr.Name
                                          left: <Id.Lit_VarLike 'CLICOLOR_FORCE='>
                                          name: CLICOLOR_FORCE
                                        )
                                      op: assign_op.Equal
                                      rhs: {<1>}
                                      spids: [540]
                                    )
                                  ]
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                            (command.Sentence
                              child: (C {<export>} {<CLICOLOR_FORCE>})
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                          redirects: []
                          right: <Id.Lit_RBrace '}'>
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_when='> name:color_when)
                          op: assign_op.Equal
                          rhs: (rhs_word.Empty)
                          spids: [552]
                        )
                      ]
                      redirects: []
                    )
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LSCOLORS='> name:LSCOLORS)
                              op: assign_op.Equal
                              rhs: {(DQ <ExGxcxdxCxegedCxCxExEx>)}
                              spids: [568]
                            )
                          ]
                          redirects: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (C {<export>} {<LSCOLORS>})
                  ]
                  spids: [459 470]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_opt='> name:color_opt)
                      op: assign_op.Equal
                      rhs: {(SQ <'--color='>)}
                      spids: [582]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'color_never='> name:color_never)
                      op: assign_op.Equal
                      rhs: {(DQ <'--color=never'>)}
                      spids: [588]
                    )
                  ]
                  redirects: []
                )
                (command.AndOr
                  ops: [Id.Op_DPipe]
                  children: [
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName LS_COLORS))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                    (C {<eval>} 
                      {
                        (command_sub
                          left_token: <Id.Left_Backtick '`'>
                          child: (C {<dircolors>})
                          right: <Id.Backtick_Right '`'>
                        )
                      }
                    )
                  ]
                )
                (command.AndOr
                  ops: [Id.Op_DPipe]
                  children: [
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName LS_COLORS))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                    (C {<eval>} 
                      {
                        (command_sub
                          left_token: <Id.Left_Backtick '`'>
                          child: 
                            (command.Simple
                              words: [{<dircolors>}]
                              redirects: []
                              more_env: [(env_pair name:TERM val:{<xterm>} spids:[636])]
                              do_fork: T
                            )
                          right: <Id.Backtick_Right '`'>
                        )
                      }
                    )
                  ]
                )
                (command.Sentence
                  child: 
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'LS_COLORS='> name:LS_COLORS)
                          op: assign_op.Equal
                          rhs: {(DQ <':'> ($ Id.VSub_DollarName LS_COLORS) <':'>)}
                          spids: [697]
                        )
                      ]
                      redirects: []
                    )
                  terminator: <Id.Op_Semi _>
                )
                (C {<export>} {<LS_COLORS>})
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.Pipeline
                                  children: [
                                    (C {<dircolors>})
                                    (command.Simple
                                      words: [{<grep>} {<-F>} {(DQ <':mh='>)}]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '>'>
                                          loc: (redir_loc.Fd fd:1)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                  ]
                                  negated: F
                                  stderr_indices: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'hl_no_color='>
                                  name: hl_no_color
                                )
                              op: assign_op.Equal
                              rhs: {(DQ <'s/:hl=[^:]*:/:mh=:/; s/:mh=[^:]*:/:mh=:/'>)}
                              spids: [740]
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [719 737]
                    )
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.Pipeline
                                  children: [
                                    (C {<dircolors>})
                                    (command.Simple
                                      words: [{<grep>} {<-F>} {(DQ <'hl='>)}]
                                      redirects: [
                                        (redir
                                          op: <Id.Redir_Great '>'>
                                          loc: (redir_loc.Fd fd:1)
                                          arg: {<'/dev/null'>}
                                        )
                                      ]
                                      more_env: []
                                      do_fork: T
                                    )
                                  ]
                                  negated: F
                                  stderr_indices: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: 
                                (sh_lhs_expr.Name
                                  left: <Id.Lit_VarLike 'hl_no_color='>
                                  name: hl_no_color
                                )
                              op: assign_op.Equal
                              rhs: {(DQ <'s/:mh=[^:]*:/:hl=:/; s/:hl=[^:]*:/:hl=:/'>)}
                              spids: [767]
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [746 764]
                    )
                  ]
                  else_action: []
                  redirects: []
                )
                (C {<eval>} 
                  {
                    (DQ 
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.CommandList
                            children: [
                              (command.Pipeline
                                children: [
                                  (C {<echo>} 
                                    {<Id.Lit_VarLike 'LS_COLORS='> 
                                      (word_part.EscapedLiteral
                                        token: <Id.Lit_EscapedChar '\\\''>
                                        ch: '\''
                                      ) (DQ ($ Id.VSub_DollarName LS_COLORS)) 
                                      (word_part.EscapedLiteral
                                        token: <Id.Lit_EscapedChar '\\\''>
                                        ch: '\''
                                      ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\;'> ch:';')
                                    }
                                  )
                                  (C {<sed>} 
                                    {
                                      (DQ <'\n'> <'        '> ($ Id.VSub_DollarName hl_no_color) <'\n'> 
                                        <'        s/:su=[^:]*:/:su=:/\n'> <'        s/:sg=[^:]*:/:sg=:/\n'> <'        s/:ow=[^:]*:/:ow=:/\n'> <'        s/:st=[^:]*:/:st=:/\n'> 
                                        <'        s/:tw=[^:]*:/:tw=:/\n'> <'\n'> <'        s/:ca=[^:]*:/:ca=:/\n'> <'\n'> <'        s/:mi=[^:]'> <Id.Lit_BadBackslash '\\'> <'{1,'> 
                                        <Id.Lit_BadBackslash '\\'> <'}:/:mi='> ($ Id.VSub_DollarName LS_HLI) <':/\n'> <'      '>
                                      )
                                    }
                                  )
                                ]
                                negated: F
                                stderr_indices: []
                              )
                              (C {<echo>} {(SQ <'export LS_COLORS'>)})
                            ]
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    )
                  }
                )
              ]
              redirects: []
            )
          ]
          spids: [445 456]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'total='> name:total)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.Pipeline
                    children: [
                      (C {($ Id.VSub_DollarName ls)} {<-s>} {($ Id.VSub_DollarName color_never)} {<'/'>})
                      (C {<sed>} {(SQ <'s/\\([^ ]*\\).*/\\1/;q'>)})
                    ]
                    negated: F
                    stderr_indices: []
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [894]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{($ Id.VSub_DollarName ls)} {<--group-directories-first>} {<-d>} {<.>}]
          redirects: [
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          more_env: []
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gdf='> name:gdf)
              op: assign_op.Equal
              rhs: {<--group-directories>}
              spids: [941]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{($ Id.VSub_DollarName ls)} {<--no-group>} {<-d>} {<.>}]
          redirects: [
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          more_env: []
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ng='> name:ng)
              op: assign_op.Equal
              rhs: {<--no-group>}
              spids: [960]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [
            {($ Id.VSub_DollarName ls)}
            {<--quoting> <Id.Lit_Equals '='> <shell-escape>}
            {<-d>}
            {<.>}
          ]
          redirects: [
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          more_env: []
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'quote='> name:quote)
              op: assign_op.Equal
              rhs: {<--quoting> <Id.Lit_Equals '='> <shell-escape>}
              spids: [981]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'lfmt='> name:lfmt)
          op: assign_op.Equal
          rhs: {<lfmt>}
          spids: [993]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Pipeline
          children: [
            (C {<echo>} {(DQ ($ Id.VSub_Star '*'))})
            (command.Simple
              words: [{<grep>} {<-E>} {<-->} {(DQ <'-(m|i|x|s|C|-version|-help)'>)}]
              redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})]
              more_env: []
              do_fork: T
            )
          ]
          negated: F
          stderr_indices: []
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'lfmt='> name:lfmt)
              op: assign_op.Equal
              rhs: {(DQ )}
              spids: [1019]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      words: [{<exec>}]
      redirects: [(redir op:<Id.Redir_GreatAnd '4>&'> loc:(redir_loc.Fd fd:4) arg:{<1>})]
      more_env: []
      do_fork: T
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ls_status='> name:ls_status)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (BraceGroup
                    left: <Id.Lit_LBrace '{'>
                    children: [
                      (command.Sentence
                        child: 
                          (command.Pipeline
                            children: [
                              (BraceGroup
                                left: <Id.Lit_LBrace '{'>
                                children: [
                                  (command.Sentence
                                    child: 
                                      (C {($ Id.VSub_DollarName ls)} {<-lrtq>} 
                                        {($ Id.VSub_DollarName color_opt) 
                                          ($ Id.VSub_DollarName color_when)
                                        } {($ Id.VSub_DollarName ng)} {($ Id.VSub_DollarName gdf)} {($ Id.VSub_DollarName quote)} 
                                        {(DQ ($ Id.VSub_At '@'))}
                                      )
                                    terminator: <Id.Op_Semi _>
                                  )
                                  (command.Sentence
                                    child: 
                                      (command.Simple
                                        words: [{<printf>} {($ Id.VSub_QMark '?')}]
                                        redirects: [
                                          (redir
                                            op: <Id.Redir_GreatAnd '1>&'>
                                            loc: (redir_loc.Fd fd:1)
                                            arg: {<3>}
                                          )
                                        ]
                                        more_env: []
                                        do_fork: T
                                      )
                                    terminator: <Id.Op_Semi _>
                                  )
                                ]
                                redirects: []
                                right: <Id.Lit_RBrace '}'>
                              )
                              (command.Simple
                                words: [
                                  {<sed>}
                                  {
                                    (DQ <'\n'> <'  # Remove total line(s) I never use\n'> <'  /'> 
                                      ($ Id.VSub_DollarName total) <' [0-9,. ]'> <Id.Lit_BadBackslash '\\'> <'{1,'> <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_Dollar '$'> 
                                      <'/d\n'> <'\n'> <'  # prettify symlink arrows\n'> <'  s/ -> / '> ($ Id.VSub_DollarName BLD) 
                                      ($ Id.VSub_DollarName SYM_ARROW) ($ Id.VSub_DollarName RST) <' /\n'> <'\n'> <'  # Conditionally process long format output\n'> <'  b '> 
                                      ($ Id.VSub_DollarName lfmt) <'\n'> <'  :lfmt\n'> <'\n'> <'  # Ignore directory name headings\n'> <'  /^[^ ]'> 
                                      <Id.Lit_BadBackslash '\\'> <'{1,'> <Id.Lit_BadBackslash '\\'> <'}:'> <Id.Lit_Dollar '$'> <'/b\n'> <'\n'> 
                                      <'  # temporarily shrink any prepended reset codes\n'> <'  # from older ls\' to a single char\n'> <'  s/^'> ($ Id.VSub_DollarName ESC) 
                                      <Id.Lit_BadBackslash '\\'> <'[0*m/0/\n'> <'\n'> <'  # highlight ug+s indicators\n'> <'  s/^'> <Id.Lit_BadBackslash '\\'> <'(0'> 
                                      <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> <'{3'> <Id.Lit_BadBackslash '\\'> 
                                      <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([sS]'> <Id.Lit_BadBackslash '\\'> <')/'> 
                                      <Id.Lit_BadBackslash '\\'> <1> ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <2> ($ Id.VSub_DollarName RST) <'/\n'> <'  s/^'> 
                                      <Id.Lit_BadBackslash '\\'> <'(0'> <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> 
                                      <'{6'> <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([sS]'> 
                                      <Id.Lit_BadBackslash '\\'> <')/'> <Id.Lit_BadBackslash '\\'> <1> ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <2> 
                                      ($ Id.VSub_DollarName RST) <'/\n'> <'\n'> <'  # highlight +t o+w indicators for directories\n'> <'  /^0'> <Id.Lit_BadBackslash '\\'> 
                                      <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}d/!b not_dir\n'> <'  s/^'> <Id.Lit_BadBackslash '\\'> <'(0'> 
                                      <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> <'{9'> <Id.Lit_BadBackslash '\\'> 
                                      <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([tT]'> <Id.Lit_BadBackslash '\\'> <')/'> 
                                      <Id.Lit_BadBackslash '\\'> <1> ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <2> ($ Id.VSub_DollarName RST) <'/\n'> <'  s/^'> 
                                      <Id.Lit_BadBackslash '\\'> <'(0'> <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> 
                                      <'{8'> <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')w/'> <Id.Lit_BadBackslash '\\'> <1> 
                                      (${ Id.VSub_Name HLI) <w> ($ Id.VSub_DollarName RST) <'/\n'> <'  s/^'> <Id.Lit_BadBackslash '\\'> <'(0'> 
                                      <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> <'{3'> <Id.Lit_BadBackslash '\\'> 
                                      <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([sS]'> <Id.Lit_BadBackslash '\\'> <')/'> 
                                      <Id.Lit_BadBackslash '\\'> <1> ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <2> ($ Id.VSub_DollarName RST) <'/\n'> <'  s/^'> 
                                      <Id.Lit_BadBackslash '\\'> <'(0'> <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}.'> <Id.Lit_BadBackslash '\\'> 
                                      <'{6'> <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([sS]'> 
                                      <Id.Lit_BadBackslash '\\'> <')/'> <Id.Lit_BadBackslash '\\'> <1> ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <2> 
                                      ($ Id.VSub_DollarName RST) <'/\n'> <'  :not_dir\n'> <'\n'> <'  # highlight multiply linked files\n'> <'  /^0'> 
                                      <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}[^d]'> <Id.Lit_BadBackslash '\\'> <'{10,'> 
                                      <Id.Lit_BadBackslash '\\'> <'}/!b not_hl\n'> <'  /^[^ ]* *1 /b not_hl\n'> <'  s/^'> <Id.Lit_BadBackslash '\\'> <'(0'> 
                                      <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}[^ ]*'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> 
                                      <'( *'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'([0-9]'> <Id.Lit_BadBackslash '\\'> <'{1,'> 
                                      <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')/'> <Id.Lit_BadBackslash '\\'> <1> <Id.Lit_BadBackslash '\\'> <2> 
                                      ($ Id.VSub_DollarName HLI) <Id.Lit_BadBackslash '\\'> <3> ($ Id.VSub_DollarName RST) <'/\n'> <'  :not_hl\n'> <'\n'> 
                                      <'  # restore any reset codes replaced above\n'> <'  s/^0/'> (${ Id.VSub_Name ESC) <'[0m/\n'>
                                    )
                                  }
                                ]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_GreatAnd '1>&'>
                                    loc: (redir_loc.Fd fd:1)
                                    arg: {<4>}
                                  )
                                ]
                                more_env: []
                                do_fork: T
                              )
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        terminator: <Id.Op_Semi _>
                      )
                    ]
                    redirects: [(redir op:<Id.Redir_GreatAnd '3>&'> loc:(redir_loc.Fd fd:3) arg:{<1>})]
                    right: <Id.Lit_RBrace '}'>
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [1039]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'sed_status='> name:sed_status)
          op: assign_op.Equal
          rhs: {($ Id.VSub_QMark '?')}
          spids: [1553]
        )
      ]
      redirects: []
    )
    (command.AndOr
      ops: [Id.Op_DAmp Id.Op_DPipe]
      children: [
        (C {<test>} {($ Id.VSub_DollarName ls_status)} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>})
        (command.ControlFlow
          token: <Id.ControlFlow_Exit exit>
          arg_word: {($ Id.VSub_DollarName ls_status)}
        )
        (command.ControlFlow
          token: <Id.ControlFlow_Exit exit>
          arg_word: {($ Id.VSub_DollarName sed_status)}
        )
      ]
    )
  ]
)