This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip | |
| # You can skip over reading this class, if you like. | |
| # It's an implementation of mine of the bash parser in pure python | |
| # This has advantages over shlex, glob, and shlex->glob in that it expects | |
| # the strings to represent files from the start. | |
| class BetterParser: | |
| def __init__(self): | |
| self.env_vars = {"$HOME": os.path.expanduser('~')} |