Afficher un message
Vieux 30/05/2007, 15h49   #1
rh0dium
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut tcsh: continue: end not found. --- Arghh

Hi All,

Fairly simple shell script or so I thought. I can't get rid of the
error: 'tcsh: continue: end not found.' Can anyone with a better set
of eyes look this over and me out on this.

Thanks!!

----

#!/bin/tcsh

set cpath = 'a b c d e f'
set npath = 'c b a'

set droppath='f'

foreach x ($cpath)
set match = 0
foreach y ($npath)
echo "Comparing New Path item $y to Old Path $x"
if ($x == $y) then
set match=1
break
endif
end
echo "Value of the Match = $match"

if ( ! $match ) then
set match = 0
foreach z ($droppath)
echo " Comparing Match $x to $z to determine if it can be
dropped"
if ( $z == $x ) then
set match = 1
break
endif
end
echo " Value of the Match = $match"
if ( $match ) then
echo " >> We need to ignore path $x it's excluded"
else
echo " >> We need to add $x to our path"
endif
echo " -- Falling out of match loop"
endif
continue
end

  Réponse avec citation
 
Page generated in 0,05338 seconds with 9 queries