Results 1 to 1 of 1
I have SUSE LINUX 10.0 (i586) - Kernel 2.6.13-15-smp on which This C shell is installed -
$csh --version
tcsh 6.14.00 (Astron) 2005-03-25
I have written small C shell script ...
- 04-04-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 1
SUSE 10.0 (i586) C Shell (tcsh) pattern comparison is not working properly.
I have SUSE LINUX 10.0 (i586) - Kernel 2.6.13-15-smp on which This C shell is installed -
$csh --version
tcsh 6.14.00 (Astron) 2005-03-25
I have written small C shell script -
set list=(*.h)
echo $list[1]
if ("$list[1]" !~ *\**) then
echo "HERE"
else
echo "ANY"
endif
If in my current directory some header files are there even then it is failing the if condition and echoing "ANY".
list[1] will be having "*.h" when there is no header file in current directory. In that case only if condition should fail and go to else part.
I have verified the behaviour in SuSE Linux 9.1 (i586) - Kernel 2.6.4-52-smp
where tcsh version is "tcsh 6.12.00 (Astron) 2002-07-23 (i586-suse-linux)"
the if condtion works fine i.e. when any header files are avaliable it echoes HERE otherwise ANY.
I checked in Solaris also and the behavious is same as SUSE 9.1 which looks correct.
Is this an known problem of SUSE 10? Any patch is available to rectify the issue?
Thanks
Shakul


Reply With Quote