Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "John Morrison" <john.r.morrison@ntlworld.com>
To: "Patrick J. LoPresti" <patl@users.sourceforge.net>
Cc: "Cygwin" <cygwin@cygwin.com>
Subject: RE: "The system cannot find the file specified" error in /etc/profile
Date: Wed, 20 Aug 2003 20:45:41 +0100
Message-ID: <NCEBJJFMCAOKNNABBFIMAEHAEEAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <s5gn0e4ywi5.fsf@egghead.curl.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Thanks, both this and the "too many arguments" have been fixed
in base-files 2.1-1

Update to the latest base-files (2.1-1) then start cygwin and

cp /etc/defaults/etc/profile /etc/profile

to get the fixes.  Thanks for taking the time to report though.

J.

> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Patrick J. LoPresti
> Sent: Wednesday, 20 August 2003 8:12 pm
> To: cygwin@cygwin.com
> Subject: "The system cannot find the file specified" error in
> /etc/profile
> 
> 
> On a newly built Windows XP system with no printers configured, the
> registry key:
> 
>   HKEY_CURRENT_USER\Software\Microsoft\Windows 
> NT\CurrentVersion\Windows\Device
> 
> ...does not exist.  This causes /etc/profile to emit this message
> every time it runs:
> 
>   Error (2): The system cannot find the file specified.
> 
> One possible fix is appended.
> 
>  - Pat
> 
> --- profile.orig	2003-08-20 15:01:13.000000000 -0400
> +++ profile	2003-08-20 15:06:27.000000000 -0400
> @@ -123,7 +123,7 @@
>  # Define default printer
>  case "`uname -s`" in
>  CYGWIN_NT-*)
> -  PRINTER="`regtool get '\user\Software\Microsoft\Windows 
> NT\CurrentVersion\Windows\Device' | 
> +  PRINTER="`regtool -q get '\user\Software\Microsoft\Windows 
> NT\CurrentVersion\Windows\Device' | 
>      sed 's/,.*$//'`"
>    ;;
>  CYGWIN_9?-*)
> 
> --
> 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/

--
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/

