(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: (Token id:Id.VSub_Number val:1 span_id:103)
                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: (Token id:Id.Left_Backtick val:'`' span_id:110)
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(hg)} {(--debug)} {(help)})
                          (C {(sed)} {(-e)} 
                            {(SQ (Token id:Id.Lit_Chars val:'1,/^list of commands:/d' span_id:149))} {(-e)} {(SQ (Token id:Id.Lit_Chars val:'/^enabled extensions:/,$d' span_id:157))} {(-e)} 
                            {
                              (SQ 
                                (Token
                                  id: Id.Lit_Chars
                                  val: '/^additional help topics:/,$d'
                                  span_id: 165
                                )
                              )
                            } {(-e)} {(SQ (Token id:Id.Lit_Chars val:'/^ [^ ]/!d; s/[,:]//g;' span_id:173))}
                          )
                          (C {(xargs)} {(-n5)})
                          (C {(sed)} {(-e)} 
                            {
                              (SQ 
                                (Token
                                  id: Id.Lit_Chars
                                  val: '$!s/$/ \\\\/g; 2,$s/^ */    /g'
                                  span_id: 193
                                )
                              )
                            }
                          )
                        ]
                        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: (Token id:Id.Left_Backtick val:'`' span_id:199)
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(hg)} {(-v)} {(help)})
                          (C {(sed)} {(-e)} 
                            {
                              (SQ 
                                (Token
                                  id: Id.Lit_Chars
                                  val: '1,/global/d;/^ *-/!d; s/ [^- ].*//'
                                  span_id: 226
                                )
                              )
                            }
                          )
                          (C {(sed)} {(-e)} 
                            {
                              (SQ 
                                (Token
                                  id: Id.Lit_Chars
                                  val: 's/ *$//; $!s/$/ \\\\/g; 2,$s/^ */    /g'
                                  span_id: 238
                                )
                              )
                            }
                          )
                        ]
                        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: (Token id:Id.Left_Backtick val:'`' span_id:244)
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(hg)} {(version)})
                          (C {(sed)} {(-e)} {(SQ (Token id:Id.Lit_Chars val:1q span_id:258))})
                        ]
                        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: (Token id:Id.Left_Backtick val:'`' span_id:264)
                command_list: 
                  (command.CommandList
                    children: [(C {(basename)} {($ Id.VSub_Number '$0')})]
                  )
              )
            }
          spids: [263]
        )
      ]
    )
    (command.Simple
      words: [{(cat)}]
      redirects: [
        (redir.Redir
          op: (Token id:Id.Redir_Great val:'>' span_id:275)
          fd: -1
          arg_word: {($ Id.VSub_DollarName '$tcsh_file')}
        )
        (redir.HereDoc
          op: (Token id:Id.Redir_DLess val:'<<' span_id:279)
          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: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:301)
            )
            ('\n')
            ("  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' ")
            (word_part.EscapedLiteral
              token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:304)
            )
            ('\n')
            ("  'C/-/(")
            ($ Id.VSub_DollarName '$hg_global_options')
            (")/' ")
            (word_part.EscapedLiteral
              token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:309)
            )
            ('\n')
            ("  'p/1/(")
            ($ Id.VSub_DollarName '$hg_commands')
            (")/'\n")
            ('\n')
          ]
        )
      ]
    )
  ]
)