This is the mail archive of the
mailing list for the Cygwin project.
Re: Bug in type -a
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html