tcsh bug
- From: "blue" <singh.sundeep@xxxxxxxxx>
- Date: 28 Sep 2006 06:31:20 -0700
Hi,
Can someone explain this weird behaviour...
I have a script like this:
*************************************************************************************
#! /bin/tcsh -f
# tcsh 6.12.00
if (-e Hce.res) then
fgrep PASSED Hce.res >& /dev/null
if ($status)then
# If you put a space between "($status)" and "then" things work fine.
echo "Hce.res exists:: FAIL1: HCE "
else
echo "Hce.res exists:: PASS2: HCE Test"
endif
else
echo "Hce.res does NOT exist:: FAIL3: "
endif
*************************************************************************************
I am executing it on Red Hat Enterprise 3.0, Intel x86.
Even when the file "Hce.res" is absent, it prints "Hce.res exists::
PASS2: HCE Test".
The shell dosen't complain of any syntax error in script.
Thanks,
blue.
.
- Follow-Ups:
- Re: tcsh bug
- From: Icarus Sparry
- Re: tcsh bug
- From: Barry Margolin
- Re: tcsh bug
- Prev by Date: Re: assign a string variable onto itself with concat ksh
- Next by Date: Re: tcsh bug
- Previous by thread: assign a string variable onto itself with concat ksh
- Next by thread: Re: tcsh bug
- Index(es):
Relevant Pages
|