delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/19/05:04:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <40AB21E6.3090403@merius.de>
Date: Wed, 19 May 2004 10:59:18 +0200
From: Kai Tomerius <kai DOT t AT merius DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: tcsh 4k problem

Hi,

I just encountered a problem with tcsh scripts with a size >4k. 
Admittedly, I don't run the latest version of tcsh, but I've searched 
the archives and didn't see this problem being fixed. Sorry if I missed 
something ...

Cheers,
Kai

The following script does pretty much nothing except for printing the 
parameters given to it; it's meant to demonstrate the problem:
---------------------------------------------------------------------------------------------
#!/bin/tcsh -f

set f = ( )

while ( $# )
   set f = ( $f $1 )
   shift
end

foreach i ( $f )
   set x = 
"-------------------------------------------------------------------"
   echo $i
end
---------------------------------------------------------------------------------------------

This works. If you start duplicating the line "set x = ..." line, the 
script ceases to work as soon as the size exceeds (about) 4k (command 
shell output):
---------------------------------------------------------------------------------------------
 > ./x a b c
a
b
c
 > ll x
-rwxrwxrwx    1 tom      Kein         4097 May 19 10:32 x
 > ./x a b c
a
b
c

...

 > ./x a b c
a
Badly placed ()'s.
 > ll x
-rwxrwxrwx    1 tom      Kein         4098 May 19 10:33 x
---------------------------------------------------------------------------------------------

The problem disappears again if I add a sufficiently high number of 
empty lines in front of the foreach statement.

Here is what cygcheck -s says:
---------------------------------------------------------------------------------------------
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed May 19 10:38:14 2004

Windows XP Professional Ver 5.1 Build 2600

Path:    x:\bin
    E:\Programme\Cygwin\usr\local\bin
    E:\Programme\Cygwin\bin
    E:\Programme\Cygwin\bin
    E:\Programme\Cygwin\home\tom\bin
    c:\WINDOWS\system32
    c:\WINDOWS
    c:\WINDOWS\System32\Wbem
    E:\Programme\Cygwin\usr\X11R6\bin

Output from E:\Programme\Cygwin\bin\id.exe (nontsec)
UID: 1003(tom) GID: 513(Kein)
513(Kein)

Output from E:\Programme\Cygwin\bin\id.exe (ntsec)
UID: 1003(tom) GID: 513(Kein)
544(Administratoren)  545(Benutzer)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `E:\Programme\Cygwin\home\tom'
LD_LIBRARY_PATH = `'
PWD = `/home/tom/temp'
USER = `tom'

Use `-r' to scan registry

c:  hd  NTFS    8189Mb  47% CP CS UN PA FC    
d:  hd  FAT32   2043Mb  20% CP    UN           TRANSFER
e:  hd  NTFS    8189Mb  70% CP CS UN PA FC     Data
f:  hd  NTFS   19720Mb  14% CP CS UN PA FC     Backup
r:  net NTFS   110168Mb  11% CP CS    PA        DATA
s:  net NTFS   117796Mb 100% CP CS UN PA FC     DATEN
t:  net NTFS   117796Mb 100% CP CS UN PA FC     DATEN
x:  hd  FAT       63Mb   1% CP    UN           RAMDisk
z:  cd           N/A    N/A                   

E:\Programme\Cygwin                          /                         
system  binmode
C:                                           /c                        
system  binmode
E:\Programme\Cygwin/bin                      /usr/bin                  
system  binmode
E:\Programme\Cygwin/lib                      /usr/lib                  
system  binmode
E:\Programme\Cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  
system  binmode
.                                            /cygdrive                 
system  binmode,cygdrive

Not Found: awk
Found: E:\Programme\Cygwin\bin\bash.exe
Found: E:\Programme\Cygwin\bin\cat.exe
Found: E:\Programme\Cygwin\bin\cp.exe
Found: E:\Programme\Cygwin\bin\cpp.exe
Found: E:\Programme\Cygwin\bin\find.exe
Found: E:\Programme\Cygwin\bin\gcc.exe
Found: E:\Programme\Cygwin\bin\gdb.exe
Found: E:\Programme\Cygwin\bin\grep.exe
Found: E:\Programme\Cygwin\bin\ld.exe
Found: E:\Programme\Cygwin\bin\ls.exe
Found: E:\Programme\Cygwin\bin\make.exe
Found: E:\Programme\Cygwin\bin\mv.exe
Found: E:\Programme\Cygwin\bin\rm.exe
Found: E:\Programme\Cygwin\bin\sed.exe
Found: E:\Programme\Cygwin\bin\sh.exe
Found: E:\Programme\Cygwin\bin\tar.exe

  232k 2004/01/14 E:\Programme\Cygwin\usr\local\bin\cygutil.dll
 5126k 2004/01/13 E:\Programme\Cygwin\usr\local\bin\cygxerces-c24.dll
   61k 2003/08/09 E:\Programme\Cygwin\bin\cygbz2-1.dll
    7k 2003/10/19 E:\Programme\Cygwin\bin\cygcrypt-0.dll
  842k 2003/09/30 E:\Programme\Cygwin\bin\cygcrypto-0.9.7.dll
  645k 2003/04/11 E:\Programme\Cygwin\bin\cygcrypto.dll
   22k 2003/10/17 E:\Programme\Cygwin\bin\cygcygipc-2.dll
  380k 2002/07/24 E:\Programme\Cygwin\bin\cygdb-3.1.dll
  831k 2003/09/20 E:\Programme\Cygwin\bin\cygdb-4.1.dll
  487k 2002/07/24 E:\Programme\Cygwin\bin\cygdb_cxx-3.1.dll
 1080k 2003/09/20 E:\Programme\Cygwin\bin\cygdb_cxx-4.1.dll
  155k 2004/01/07 E:\Programme\Cygwin\bin\cygexpat-0.dll
   71k 2004/01/13 E:\Programme\Cygwin\bin\cygexslt-0.dll
  131k 2003/10/28 E:\Programme\Cygwin\bin\cygfontconfig-1.dll
   45k 2001/04/25 E:\Programme\Cygwin\bin\cygform5.dll
   35k 2002/01/09 E:\Programme\Cygwin\bin\cygform6.dll
   48k 2003/08/09 E:\Programme\Cygwin\bin\cygform7.dll
  361k 2003/10/25 E:\Programme\Cygwin\bin\cygfreetype-6.dll
   28k 2003/07/20 E:\Programme\Cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 E:\Programme\Cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 E:\Programme\Cygwin\bin\cyggdbm.dll
   15k 2003/07/20 E:\Programme\Cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 E:\Programme\Cygwin\bin\cyggdbm_compat-4.dll
   69k 2003/08/10 E:\Programme\Cygwin\bin\cyggettextlib-0-12-1.dll
   12k 2003/08/10 E:\Programme\Cygwin\bin\cyggettextpo-0.dll
  134k 2003/08/10 E:\Programme\Cygwin\bin\cyggettextsrc-0-12-1.dll
   17k 2001/06/28 E:\Programme\Cygwin\bin\cyghistory4.dll
   29k 2003/08/10 E:\Programme\Cygwin\bin\cyghistory5.dll
  306k 2002/04/27 E:\Programme\Cygwin\bin\cyghttpd.dll
  958k 2003/08/10 E:\Programme\Cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 E:\Programme\Cygwin\bin\cygintl-1.dll
   37k 2003/08/10 E:\Programme\Cygwin\bin\cygintl-2.dll
   48k 2003/08/10 E:\Programme\Cygwin\bin\cygjbig1.dll
  132k 2003/08/11 E:\Programme\Cygwin\bin\cygjpeg-62.dll
  119k 2002/02/09 E:\Programme\Cygwin\bin\cygjpeg6b.dll
   40k 2004/01/02 E:\Programme\Cygwin\bin\cyglber-2.dll
  194k 2004/01/02 E:\Programme\Cygwin\bin\cygldap-2.dll
  202k 2004/01/02 E:\Programme\Cygwin\bin\cygldap_r-2.dll
  349k 2003/12/26 E:\Programme\Cygwin\bin\cygMagick++-6.dll
 2354k 2003/12/26 E:\Programme\Cygwin\bin\cygMagick-6.dll
   26k 2001/04/25 E:\Programme\Cygwin\bin\cygmenu5.dll
   20k 2002/01/09 E:\Programme\Cygwin\bin\cygmenu6.dll
   29k 2003/08/09 E:\Programme\Cygwin\bin\cygmenu7.dll
   15k 2003/11/20 E:\Programme\Cygwin\bin\cygminires.dll
  156k 2001/04/25 E:\Programme\Cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 E:\Programme\Cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 E:\Programme\Cygwin\bin\cygncurses5.dll
  202k 2002/01/09 E:\Programme\Cygwin\bin\cygncurses6.dll
  224k 2003/08/09 E:\Programme\Cygwin\bin\cygncurses7.dll
   15k 2001/04/25 E:\Programme\Cygwin\bin\cygpanel5.dll
   12k 2002/01/09 E:\Programme\Cygwin\bin\cygpanel6.dll
   19k 2003/08/09 E:\Programme\Cygwin\bin\cygpanel7.dll
   62k 2003/12/11 E:\Programme\Cygwin\bin\cygpcre-0.dll
   63k 2003/04/11 E:\Programme\Cygwin\bin\cygpcre.dll
    9k 2003/12/11 E:\Programme\Cygwin\bin\cygpcreposix-0.dll
   61k 2003/04/11 E:\Programme\Cygwin\bin\cygpcreposix.dll
 1049k 2003/11/07 E:\Programme\Cygwin\bin\cygperl5_8_2.dll
  173k 2003/08/10 E:\Programme\Cygwin\bin\cygpng12.dll
   22k 2002/06/09 E:\Programme\Cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 E:\Programme\Cygwin\bin\cygreadline4.dll
  148k 2003/08/10 E:\Programme\Cygwin\bin\cygreadline5.dll
   66k 2001/11/20 E:\Programme\Cygwin\bin\cygregex.dll
  171k 2003/09/30 E:\Programme\Cygwin\bin\cygssl-0.9.7.dll
  165k 2003/04/11 E:\Programme\Cygwin\bin\cygssl.dll
  281k 2003/02/24 E:\Programme\Cygwin\bin\cygtiff3.dll
  282k 2003/08/11 E:\Programme\Cygwin\bin\cygtiff4.dll
 3006k 2003/10/12 E:\Programme\Cygwin\bin\cygxerces-c23.dll
 1172k 2004/01/10 E:\Programme\Cygwin\bin\cygxml2-2.dll
  191k 2004/01/13 E:\Programme\Cygwin\bin\cygxslt-1.dll
   61k 2003/12/04 E:\Programme\Cygwin\bin\cygz.dll
 6098k 2004/01/20 E:\Programme\Cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.5.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 94
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Bugs fixed: 268
        Build date: Tue Jan 20 10:20:56 2004
        Shared id: cygwin1S3

  237k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygdps-1.dll
  121k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygdpstk-1.dll
   28k 2004/01/16 E:\Programme\Cygwin\usr\X11R6\bin\cygDtPrint-1.dll
  282k 2003/10/28 E:\Programme\Cygwin\usr\X11R6\bin\cygfreetype-9.dll
  373k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygGL-1.dll
  439k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygGLU-1.dll
   74k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygICE-6.dll
   76k 2004/01/16 E:\Programme\Cygwin\usr\X11R6\bin\cygMrm-2.dll
    9k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygoldX-6.dll
 1271k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygOSMesa-4.dll
   20k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygpsres-1.dll
   30k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygSM-6.dll
   66k 2004/01/16 E:\Programme\Cygwin\usr\X11R6\bin\cygUil-2.dll
  864k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygX11-6.dll
  253k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXaw-6.dll
  355k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXaw-7.dll
   36k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXcursor-1.dll
   49k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXext-6.dll
   56k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXft-1.dll
   74k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXft-2.dll
   27k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXi-6.dll
 1293k 2004/01/16 E:\Programme\Cygwin\usr\X11R6\bin\cygXm-2.dll
   76k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXmu-6.dll
   11k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXmuu-1.dll
   26k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXp-6.dll
   51k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXpm-4.dll
   14k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXrandr-2.dll
   26k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXrender-1.dll
  282k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXt-6.dll
   27k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXTrap-6.dll
   17k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXtst-6.dll
   15k 2003/11/18 E:\Programme\Cygwin\usr\X11R6\bin\cygXv-1.dll

Cygwin Package Information
Package                 Version           
_update-info-dir        00226-1           
apache                  1.3.24-5          
ash                     20031007-1        
astyle                  1.15.3-3          
autoconf                2.59-1            
autoconf-devel          2.59-1            
autoconf-stable         2.13-5            
automake                1.7.9-1           
automake-devel          1.7.9-1           
automake-stable         1.4p6-2           
base-files              2.6-1             
base-passwd             1.1-1             
bash                    2.05b-16          
bc                      1.06-1            
binutils                20030901-1        
bzip2                   1.0.2-5           
check                   0.8.4-1           
cron                    3.0.1-11          
crypt                   1.1-1             
ctags                   5.5-4             
cvs                     1.11.6-3          
cygipc                  2.02-1            
cygrunsrv               0.97-1            
cygutils                1.2.2-1           
cygwin                  1.5.5-1           
cygwin-doc              1.3-6             
diff                    1.0-1             
diffutils               2.8.4-1           
doxygen                 1.2.18-1          
ed                      0.2-1             
editrights              1.01-1            
emacs                   21.2-12           
emacs-X11               21.2-12           
exim                    4.24-1            
expat                   1.95.7-1          
fetchmail               6.2.5-2           
file                    4.06-1            
fileutils               4.1-2             
findutils               4.1.7-4           
fontconfig              2.2.0-1           
freetype2               2.1.5-1           
gawk                    3.1.3-4           
gcc                     3.3.1-3           
gcc-g++                 3.3.1-3           
gcc-mingw               20030911-4        
gcc-mingw-core          20031020-1        
gcc-mingw-g++           20031020-1        
gdb                     20030919-1        
gdbm                    1.8.3-7           
gettext                 0.12.1-3          
grep                    2.5-1             
groff                   1.18.1-2          
gzip                    1.3.5-1           
ImageMagick             5.5.7-2           
indent                  2.2.9-1           
inetutils               1.3.2-25          
jbigkit                 1.5-3             
jpeg                    6b-11             
less                    381-1             
lesstif                 0.93.91-6         
libbz2_1                1.0.2-5           
libdb3.1                3.1.17-2          
libdb4.1                4.1.25-1          
libfontconfig1          2.2.0-1           
libfreetype26           2.1.5-1           
libgdbm                 1.8.0-5           
libgdbm-devel           1.8.3-7           
libgdbm3                1.8.3-3           
libgdbm4                1.8.3-7           
libgettextpo0           0.12.1-3          
libiconv2               1.9.1-3           
libintl                 0.10.38-3         
libintl1                0.10.40-1         
libintl2                0.12.1-3          
libjpeg62               6b-11             
libjpeg6b               6b-8              
libMagick6              5.5.7-2           
libncurses5             5.2-1             
libncurses6             5.2-8             
libncurses7             5.3-4             
libopenldap2            2.1.25-1          
libpcre                 4.1-1             
libpcre0                4.5-1             
libpng12                1.2.5-4           
libpopt0                1.6.4-4           
libreadline4            4.1-2             
libreadline5            4.3-5             
libtiff-devel           3.6.0-5           
libtiff3                3.6.0-2           
libtiff4                3.6.0-5           
libxerces-c21           2.1.0-1           
libxerces-c22           2.2.0-1           
libxerces-c23           2.3.0-4           
libxml2                 2.6.4-1           
libxslt                 1.1.2-1           
login                   1.9-7             
lynx                    2.8.4-7           
m4                      1.4-1             
make                    3.80-1            
man                     1.5k-2            
mingw-runtime           3.2-1             
mingw-zlib              1.2.1-1           
minires                 0.97-1            
mktemp                  1.5-3             
mutt                    1.4.1-2           
ncftp                   3.1.4-1           
ncurses                 5.3-4             
newlib-man              20020801          
opengl                  1.1.0-7           
openssh                 3.7.1p2-2         
openssl                 0.9.7c-1          
openssl096              0.9.6j-1          
patch                   2.5.8-8           
pcre                    4.5-1             
pcre-doc                4.5-1             
perl                    5.8.2-1           
perl_manpages           5.8.2-1           
pilrc                   2.9p2             
pine                    4.58-1            
postgresql              7.4.1-3           
prc-tools               2.2               
prc-tools-arm           2.2               
prc-tools-htmldocs      2.2               
procmail                3.22-8            
procps                  010801-2          
python                  2.3.3-1           
readline                4.3-5             
regex                   4.4-3             
rxvt                    2.7.10-3          
sed                     4.0.8-1           
sh-utils                2.0.15-4          
shutdown                1.4-1             
ssmtp                   2.60.4-1          
tar                     1.13.25-5         
tcltk                   20030901-1        
tcsh                    6.12.00-7         
termcap                 20021106-2        
terminfo                5.3_20030726-1    
texinfo                 4.2-4             
textutils               2.0.21-1          
tiff                    3.6.0-5           
unzip                   5.50-5            
vim                     6.2.098-1         
w32api                  2.4-1             
wget                    1.9.1-1           
which                   1.5-2             
xemacs                  21.4.14-1         
xemacs-emacs-common     21.4.14-1         
xerces-c                2.4.0-4           
xerces-c-devel          2.4.0-4           
xerces-c-doc            2.4.0-4           
XFree86-base            4.3.0-1           
XFree86-bin             4.3.0-8           
XFree86-bin-icons       4.3.0-5           
XFree86-doc             4.3.0-1           
XFree86-etc             4.3.0-6           
XFree86-f100            4.2.0-3           
XFree86-fcyr            4.2.0-3           
XFree86-fenc            4.2.0-3           
XFree86-fnts            4.2.0-3           
XFree86-fscl            4.2.0-3           
XFree86-html            4.3.0-1           
XFree86-lib             4.3.0-1           
XFree86-lib-compat      4.3.0-2           
XFree86-man             4.3.0-2           
XFree86-startup-scripts 4.2.0-5           
XFree86-vfb             4.3.0-5           
XFree86-xserv           4.3.0-44          
zlib                    1.2.1-1           




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