Mail Archives: cygwin/2000/02/23/18:07:39
on NT 4.0 SP4
I use b.bat to start BASH
then enter:
which2 which2
which2 which2
which2 which2 (about three time)
and it doesn't return after the last one.
The reason for invoking so often was I was trying to test the perl script that would perform a which that would list all occurances of the command in all the $PATH.
It works the way it was intended but I just can ues it more than twice.
After it hangs the task Task Manager shows that ls.exe is running and accumulating more and more memory. (i.e. the "Memory usage" is increasing) so it appears that ls.exe is stuck in some loop.
No need to repond just reporting problem.
My fix is to close the BASH window and start another session.
b.bat
====
@title "GNU bash, version 2.02.1(2)-release (i586-pc-cygwin32)"
@call c:\tools\cygnus\cygwin-b20\cygnus.bat
@exit
which2 (perl script)
===============
#!perl
sub ls
{
my @output = `$_[0] 2>nul`;
if ( $#output > -1 ) {
print @output;
}
}
foreach $file (@ARGV) {
foreach $dir (split(/;/,$ENV{PATH})) {
&ls( "ls -l '$dir'/$file" );
&ls( "ls -l '$dir'/$file.*" );
my $cmd = $file;
$cmd =~ tr/a-z/A-Z/;
&ls( "ls -l '$dir'/$cmd.*" );
}
}
perl -v output:
===========
This is perl, version 5.005_03 built for MSWin32-x86-object
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-1999, Larry Wall
Binary build 522 provided by ActiveState Tool Corp. http://www.ActiveState.com
Built 09:52:28 Nov 2 1999
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
MOST of cygcheck.out:
=================
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Feb 23 17:36:36 2000
WinNT Ver 4.0 build 1381 Service Pack 4
Path: /tools/cygnus/CYGWIN~1/H-I586~1/bin
/tools/bin
/tools/bin/Perl/bin
/tools/jdk/bin
/WINNT/system32
/WINNT
/usr/dll
/usr/bin
/usr/bin/exceed
/IWSAAAPI
/Program Files/Microsoft Visual Studio/Common/Tools/WinNT
/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
/Program Files/Microsoft Visual Studio/Common/Tools
/Program Files/Microsoft Visual Studio/VC98/bin
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
PWD = `/tools/bin'
!C: = `C:\tools\bin'
CLASSPATH = `.'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DC = `NTCHAR1'
HOSTTYPE = `i586'
INCLUDE = `C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include'
LIB = `C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib'
MACHTYPE = `i586-pc-cygwin32'
MSDEVDIR = `C:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0703'
PROMPT = `$P$G'
PS1 = `[bash]$ '
ROLE = `WORKSTATION'
SHELL = `/bin/sh'
SHLVL = `1'
SUBNET = `78'
SYBASE = `C:\USR'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `cygwin'
TMP = `C:\TEMP'
WINDIR = `C:\WINNT'
_ = `/tools/cygnus/CYGWIN~1/H-I586~1/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
(default) = `C:'
unix = `/'
fbinary = 0x00000000
fsilent = 0x00000000
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20\B20.1
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
(default) = `c:\tools\cygnus\cygwin-b20'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus Cygwin B20
(default) = `C:\WINNT\IsUninst.exe -fc:\tools\cygnus\cygwin-b20\Uninst.isu'
DisplayName = `Cygwin B20'
a:\ fd FAT 1Mb 76% CP UN
c:\ hd NTFS 6149Mb 40% CP CS UN PA FC
g:\ net NTFS 86774Mb 80% CP CS UN PA FC NTHOME14
h:\ net NTFS 8192Mb 58% PA elozano
k:\ net NTFS 13271Mb 2% CP CS UN PA FC Data
l:\ net NTFS 13271Mb 2% CP CS UN PA FC Data
o:\ net NTFS 13271Mb 2% CP CS UN PA FC Data
s:\ net NTFS 4593Mb 13% CP CS UN PA FC
u:\ net NTFS 86774Mb 63% CP CS UN PA FC
x:\ net NTFS 13271Mb 2% CP CS UN PA FC Data
y:\ net NTFS 86774Mb 82% CP CS UN PA FC Data I
z:\ net NTFS 13271Mb 2% CP CS UN PA FC Data
C: / native text!=binary
Found: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe
Found: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe
Not Found: cpp (good!)
Found: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe
Found: C:\usr\bin\ls.exe
Warning: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides C:\usr\bin\ls.exe
Not Found: make
Found: C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe
446k 1998/12/04 C:\tools\cygnus\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=1998/12/3 23:39
Use -h to see help about each section
_______________________________________________________
Are you a Techie? Get Your Free Tech Email Address Now!
Many to choose from! Visit http://www.TechEmail.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -