Use COMSPEC environment variable to determine shell file name if SHELL
authorChris Hanson <org/chris-hanson/cph>
Wed, 22 Oct 1997 05:10:03 +0000 (05:10 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 22 Oct 1997 05:10:03 +0000 (05:10 +0000)
is not defined.

v7/src/edwin/dosfile.scm

index 35d84554579da339f87d3f6a16a70c372cc6efce..1c2820f3d790859fadfa6e1559f6cd90c34c33ef 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: dosfile.scm,v 1.10 1997/03/14 05:12:55 cph Exp $
+;;;    $Id: dosfile.scm,v 1.11 1997/10/22 05:10:03 cph Exp $
 ;;;
 ;;;    Copyright (c) 1994-97 Massachusetts Institute of Technology
 ;;;
@@ -434,6 +434,7 @@ Includes the new backup.  Must be > 0."
 
 (define (os/shell-file-name)
   (or (get-environment-variable "SHELL")
+      (get-environment-variable "COMSPEC")
       dos/default-shell-file-name))
 
 (define (os/shell-name pathname)