Commits

Brodie Rao committed 023a65f

Set the default shell back to /bin/sh on Windows.

For now, I think it makes more sense to make using cmd an opt-in
process. Most tests are written using sh, and running them on Windows
with cmd would lead to confusing errors.

Comments (0)

Files changed (1)

 
     args should not contain the script name.
     """
-    if sys.platform == 'win32':
-        shell = 'cmd'
-    else:
-        shell = '/bin/sh'
-
     p = OptionParser(usage='cram [OPTIONS] TESTS...', prog='cram')
     p.add_option('-V', '--version', action='store_true',
                  help='show version information and exit')
                  help="don't reset common environment variables")
     p.add_option('--keep-tmpdir', action='store_true',
                  help='keep temporary directories')
-    p.add_option('--shell', action='store', default=shell, metavar='PATH',
+    p.add_option('--shell', action='store', default='/bin/sh', metavar='PATH',
                  help='shell to use for running tests')
     p.add_option('--indent', action='store', default=2, metavar='NUM',
                  type='int', help='number of spaces to use for indentation')