(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:BLOCK_SIZE)
                  op: assign_op.Equal
                  rhs: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>) <1>}
                  spids: [54]
                )
              ]
            )
          terminator: <Id.Op_Semi _>
        )
        (C {<export>} {<BLOCK_SIZE>})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:TIME_STYLE)
          op: assign_op.Equal
          rhs: {(SQ <'+%b %e  %Y\n'> <'%b %e %H:%M'>)}
          spids: [79]
        )
      ]
    )
    (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'>}
                            )
                          ]
                          do_fork: T
                        )
                      ]
                      negated: F
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:SYM_ARROW)
                  op: assign_op.Equal
                  rhs: {(DQ <'▪▶'>)}
                  spids: [119]
                )
              ]
            )
          ]
          spids: [93 116]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:SYM_ARROW)
              op: assign_op.Equal
              rhs: {(DQ <'->'>)}
              spids: [127]
            )
          ]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:ESC)
          op: assign_op.Equal
          rhs: {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<printf>} {(SQ <'\\033'>)}))}
          spids: [135]
        )
      ]
    )
    (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>}
                                )
                              ]
                              do_fork: T
                            )
                          ]
                          negated: T
                        )
                        (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>}
                                )
                              ]
                              do_fork: T
                            )
                          ]
                          negated: T
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:color_when)
                  op: assign_op.Equal
                  rhs: (word.Empty)
                  spids: [188]
                )
              ]
            )
          ]
          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'>}
                                )
                              ]
                              do_fork: T
                            )
                          ]
                          negated: F
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:color_when)
                  op: assign_op.Equal
                  rhs: {<always>}
                  spids: [238]
                )
              ]
            )
            (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>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:BLD)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<bold>})
                              )
                            }
                          spids: [261]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:RST)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<sgr0>})
                              )
                            }
                          spids: [271]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:HLI)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (command_sub
                                left_token: <Id.Left_Backtick '`'>
                                child: (C {<tput>} {<smso>})
                              )
                            }
                          spids: [281]
                        )
                      ]
                    )
                  ]
                  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>}
                                )
                              ]
                              do_fork: T
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:BLD)
                          op: assign_op.Equal
                          rhs: 
                            {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<tput>} {<md>}))}
                          spids: [310]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:RST)
                          op: assign_op.Equal
                          rhs: 
                            {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<tput>} {<me>}))}
                          spids: [320]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:HLI)
                          op: assign_op.Equal
                          rhs: 
                            {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<tput>} {<so>}))}
                          spids: [330]
                        )
                      ]
                    )
                  ]
                  spids: [291 304]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name 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
                          )
                      )
                    }
                  spids: [343]
                )
              ]
            )
          ]
          spids: [193 227]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:color_when)
              op: assign_op.Equal
              rhs: {<auto>}
              spids: [382]
            )
          ]
        )
      ]
    )
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:ls) op:assign_op.Equal rhs:{<ls>} spids:[388])]
    )
    (command.AndOr
      ops: [Id.Op_DPipe Id.Op_DPipe]
      children: [
        (BraceGroup
          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>}
                    )
                  ]
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
          ]
        )
        (BraceGroup
          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>}
                        )
                      ]
                      do_fork: T
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:ls)
                          op: assign_op.Equal
                          rhs: {<gls>}
                          spids: [433]
                        )
                      ]
                    )
                  ]
                )
              terminator: <Id.Op_Semi _>
            )
          ]
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:NONGNU)
              op: assign_op.Equal
              rhs: {<1>}
              spids: [441]
            )
          ]
        )
      ]
    )
    (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
                          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>}
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:ls)
                              op: assign_op.Equal
                              rhs: {<colorls>}
                              spids: [492]
                            )
                          ]
                        )
                      ]
                    )
                    (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>}
                            )
                          ]
                          do_fork: T
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:color_opt)
                              op: assign_op.Equal
                              rhs: {<-G>}
                              spids: [515]
                            )
                          ]
                        )
                      ]
                    )
                    (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
                          children: [
                            (command.Sentence
                              child: 
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:CLICOLOR_FORCE)
                                      op: assign_op.Equal
                                      rhs: {<1>}
                                      spids: [540]
                                    )
                                  ]
                                )
                              terminator: <Id.Op_Semi _>
                            )
                            (command.Sentence
                              child: (C {<export>} {<CLICOLOR_FORCE>})
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:color_when)
                          op: assign_op.Equal
                          rhs: (word.Empty)
                          spids: [552]
                        )
                      ]
                    )
                    (command.Sentence
                      child: 
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:LSCOLORS)
                              op: assign_op.Equal
                              rhs: {(DQ <ExGxcxdxCxegedCxCxExEx>)}
                              spids: [568]
                            )
                          ]
                        )
                      terminator: <Id.Op_Semi _>
                    )
                    (C {<export>} {<LSCOLORS>})
                  ]
                  spids: [459 470]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:color_opt)
                      op: assign_op.Equal
                      rhs: {(SQ <'--color='>)}
                      spids: [582]
                    )
                  ]
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:color_never)
                      op: assign_op.Equal
                      rhs: {(DQ <'--color=never'>)}
                      spids: [588]
                    )
                  ]
                )
                (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>}))})
                  ]
                )
                (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>}]
                              more_env: [(env_pair name:TERM val:{<xterm>} spids:[636])]
                              do_fork: T
                            )
                        )
                      }
                    )
                  ]
                )
                (command.Sentence
                  child: 
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:LS_COLORS)
                          op: assign_op.Equal
                          rhs: {(DQ <':'> ($ Id.VSub_DollarName '$LS_COLORS') <':'>)}
                          spids: [697]
                        )
                      ]
                    )
                  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'>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  ]
                                  negated: F
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:hl_no_color)
                              op: assign_op.Equal
                              rhs: {(DQ <'s/:hl=[^:]*:/:mh=:/; s/:mh=[^:]*:/:mh=:/'>)}
                              spids: [740]
                            )
                          ]
                        )
                      ]
                      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'>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  ]
                                  negated: F
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:hl_no_color)
                              op: assign_op.Equal
                              rhs: {(DQ <'s/:mh=[^:]*:/:hl=:/; s/:hl=[^:]*:/:hl=:/'>)}
                              spids: [767]
                            )
                          ]
                        )
                      ]
                      spids: [746 764]
                    )
                  ]
                )
                (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 '\\\''>
                                      ) (DQ ($ Id.VSub_DollarName '$LS_COLORS')) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>) 
                                      (word_part.EscapedLiteral
                                        token: <Id.Lit_EscapedChar '\\;'>
                                      )
                                    }
                                  )
                                  (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
                              )
                              (C {<echo>} {(SQ <'export LS_COLORS'>)})
                            ]
                          )
                      )
                    )
                  }
                )
              ]
            )
          ]
          spids: [445 456]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name 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
                  )
              )
            }
          spids: [894]
        )
      ]
    )
    (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>})
          ]
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:gdf)
              op: assign_op.Equal
              rhs: {<--group-directories>}
              spids: [941]
            )
          ]
        )
      ]
    )
    (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>})
          ]
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:ng)
              op: assign_op.Equal
              rhs: {<--no-group>}
              spids: [960]
            )
          ]
        )
      ]
    )
    (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>})
          ]
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:quote)
              op: assign_op.Equal
              rhs: {<--quoting> <Id.Lit_Equals '='> <shell-escape>}
              spids: [981]
            )
          ]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:lfmt)
          op: assign_op.Equal
          rhs: {<lfmt>}
          spids: [993]
        )
      ]
    )
    (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'>})]
              do_fork: T
            )
          ]
          negated: F
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:lfmt)
              op: assign_op.Equal
              rhs: {(DQ )}
              spids: [1019]
            )
          ]
        )
      ]
    )
    (command.Simple
      words: [{<exec>}]
      redirects: [(redir op:<Id.Redir_GreatAnd '4>&'> loc:(redir_loc.Fd fd:4) arg:{<1>})]
      do_fork: T
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:ls_status)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (BraceGroup
                    children: [
                      (command.Sentence
                        child: 
                          (command.Pipeline
                            children: [
                              (BraceGroup
                                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>}
                                          )
                                        ]
                                        do_fork: T
                                      )
                                    terminator: <Id.Op_Semi _>
                                  )
                                ]
                              )
                              (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>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                            negated: F
                          )
                        terminator: <Id.Op_Semi _>
                      )
                    ]
                    redirects: [(redir op:<Id.Redir_GreatAnd '3>&'> loc:(redir_loc.Fd fd:3) arg:{<1>})]
                  )
              )
            }
          spids: [1039]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:sed_status)
          op: assign_op.Equal
          rhs: {($ Id.VSub_QMark '$?')}
          spids: [1553]
        )
      ]
    )
    (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')}
        )
      ]
    )
  ]
)