(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tcsh_file)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Number 1>
                suffix_op: (suffix_op.Unary op_id:Id.VTest_Hyphen arg_word:{<tcsh_completion>})
              )
            }
          spids: [101]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:hg_commands)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {<hg>} {<--debug>} {<help>})
                          (C {<sed>} {<-e>} {(SQ <'1,/^list of commands:/d'>)} {<-e>} 
                            {(SQ <'/^enabled extensions:/,$d'>)} {<-e>} {(SQ <'/^additional help topics:/,$d'>)} {<-e>} {(SQ <'/^ [^ ]/!d; s/[,:]//g;'>)}
                          )
                          (C {<xargs>} {<-n5>})
                          (C {<sed>} {<-e>} {(SQ <'$!s/$/ \\\\/g; 2,$s/^ */    /g'>)})
                        ]
                        negated: F
                      )
                    ]
                  )
              )
            }
          spids: [109]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:hg_global_options)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {<hg>} {<-v>} {<help>})
                          (C {<sed>} {<-e>} {(SQ <'1,/global/d;/^ *-/!d; s/ [^- ].*//'>)})
                          (C {<sed>} {<-e>} {(SQ <'s/ *$//; $!s/$/ \\\\/g; 2,$s/^ */    /g'>)})
                        ]
                        negated: F
                      )
                    ]
                  )
              )
            }
          spids: [198]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:hg_version)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [(C {<hg>} {<version>}) (C {<sed>} {<-e>} {(SQ <1q>)})]
                        negated: F
                      )
                    ]
                  )
              )
            }
          spids: [243]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:script_name)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                command_list: 
                  (command.CommandList
                    children: [(C {<basename>} {($ Id.VSub_Number '$0')})]
                  )
              )
            }
          spids: [263]
        )
      ]
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir.Redir
          op: <Id.Redir_Great '>'>
          fd: -1
          arg_word: {($ Id.VSub_DollarName '$tcsh_file')}
        )
        (redir.HereDoc
          op: <Id.Redir_DLess '<<'>
          fd: -1
          here_begin: {<END>}
          here_end_span_id: 316
          stdin_parts: [
            <'#\n'>
            <'# tcsh completion for Mercurial\n'>
            <'#\n'>
            <'# This file has been auto-generated by '>
            ($ Id.VSub_DollarName '$script_name')
            <' for\n'>
            <'# '>
            ($ Id.VSub_DollarName '$hg_version')
            <'\n'>
            <'#\n'>
            <'# Copyright (C) 2005 TK Soh.\n'>
            <'#\n'>
            <'# This is free software; you can redistribute it and/or modify it under\n'>
            <'# the terms of the GNU General Public License as published by the Free\n'>
            <'# Software Foundation; either version 2 of the License, or (at your\n'>
            <'# option) any later version.\n'>
            <'#\n'>
            <'\n'>
            <'complete hg '>
            (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>)
            <'\n'>
            <"  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' ">
            (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>)
            <'\n'>
            <"  'C/-/(">
            ($ Id.VSub_DollarName '$hg_global_options')
            <")/' ">
            (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>)
            <'\n'>
            <"  'p/1/(">
            ($ Id.VSub_DollarName '$hg_commands')
            <")/'\n">
            <'\n'>
          ]
        )
      ]
    )
  ]
)