delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/03/17:43:37

X-Spam-Check-By: sourceware.org
From: ib AT wupperonline DOT de (Ingo Brueckl)
Date: Tue, 03 Jan 2006 23:39:00 +0100
Subject: Re: COMSPEC environment variable missing
Message-ID: <43bafcf8@wupperonline.de>
In-Reply-To: <43b345c3@wupperonline.de>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

An observation which should help.

See http://www.cygwin.com/ml/cygwin/2005-12/msg01037.html for the problem. As
said, COMSPEC is set:

  TMP=C:\WINDOWS\TEMP
  TEMP=C:\WINDOWS\TEMP
  PROMPT=$p$g
  winbootdir=C:\WINDOWS
  PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
  COMSPEC=C:\WINDOWS\COMMAND.COM
  DIRCMD=/o:gne
  windir=C:\WINDOWS
  BLASTER=A220 I5 D1 H5 P330 T6

but missing in cygwin environment:

  !C:=C:\daten\c\cygwin
  TMP=/tmp
  TEMP=/tmp
  PROMPT=$p$g
  WINBOOTDIR=C:\WINDOWS
  PATH=/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND
  DIRCMD=/o:gne
  WINDIR=C:\WINDOWS
  BLASTER=A220 I5 D1 H5 P330 T6
  CMDLINE=myset
  PATH=/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND
  TERM=cygwin
  HOME=/home/ib

But now something odd! If I do:

  set PATH=%PATH%;DOES_NOT_MATTER

I suddenly get:

  !C:=C:\daten\c\cygwin
  TMP=/tmp
  TEMP=/tmp
  PROMPT=$p$g
  WINBOOTDIR=C:\WINDOWS
  COMSPEC=C:\WINDOWS\COMMAND.COM
  DIRCMD=/o:gne
  WINDIR=C:\WINDOWS
  BLASTER=A220 I5 D1 H5 P330 T6
  PATH=/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND:DOES_NOT_MATTER
  PATH=/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND:DOES_NOT_MATTER
  TERM=cygwin
  HOME=/home/ib

and COMSPEC reappers!

This only works, if setting PATH, no other environment variable change (or
setting of a new one) will cause COMSPEC to reappear.

Strange, but should help to track down this bug.

Ingo


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019