Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 06 Aug 2002 07:22:53 -0400 From: Jason Tishler Subject: Re: Bug in type -a In-reply-to: <000f01c23c98$f6c90560$2d32a8c0@mmi-pcwic.ids.de> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20020806112253.GA1460@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: <000f01c23c98$f6c90560$2d32a8c0 AT mmi-pcwic DOT ids DOT de> Andreas, On Mon, Aug 05, 2002 at 05:58:39PM +0200, Andreas Wicker wrote: > $ PATH=/bin:/lib:/cygdrive/c/WINNT > $ type regedit > regedit is /cygdrive/c/WINNT/regedit > $ type -a regedit > bash: type: regedit: not found > > I think that "type -a" should give the same result as "type" in this case. The above may be true, but... > I've found that this happens only when Cygwin runs on Windows 2000, > (Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2) but > never when Cygwin runs on Windows NT (WinNT Ver 4.0 build 1381 Service > Pack 5). It happens not only with regedit, but with every exe that > resides in C:/WINNT. The problem is due to the following: $ ls -l /mnt/c/WINNT/regedit -rwxrwx--- 1 Administ SYSTEM 72464 Jul 26 2000 /mnt/c/WINNT/regedit ^^^ The "solution" is the following: $ chmod 775 /mnt/c/WINNT/regedit.exe $ type -a regedit regedit is /mnt/c/WINNT/regedit So, you can "fix" your problem with: $ chmod 755 /cygdrive/c/WINNT/*.exe Jason -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/