This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
1.1.8 bug with TCSH 6.10 ( using shell built-in commands )
- To: <cygwin at cygwin dot com>
- Subject: 1.1.8 bug with TCSH 6.10 ( using shell built-in commands )
- From: "Mad Dave" <dave at ook dot demon dot co dot uk>
- Date: Wed, 14 Feb 2001 02:22:31 -0000
- Cc: <dave at ook dot demon dot co dot uk>
I am having a problem when I source a shell script which sources another
shell script which contains a foreach loop which contains a big switch
statement. I think this effects other tcsh versions as well ( such as
6.08 ).
I have attached 2 files which should reproduce the problem. Type: source
file1.tcsh to reproduce it. All the first file does is source the second
file, and it causes a problem, but if you source the second file directly it
works fine. Also if you remove any of the echo statements from the second
file it will work fine, which tends to surgest its the size of the foreach +
switch statement.
If I run with the tcsh -x option it produces the following output.
> source file1.tcsh
source file1.tcsh
source file2.tcsh
set vqaargs = ( 8_0 9_0 10_0 )
foreach vqaarg ( 8_0 9_0 10_0 )
switch ( 8_0 )
echo 8
8
breaksw
end
Too many )'s.
I have reproduced this on two NT4 SP6a machines and two Win2k ( one with
SP1 ) machines.
file1.tcsh
file2.tcsh
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple