Syntax error if in csh script

0

When I try to run the script, I get this error:

$ ./install
$ if: Expression Syntax.

I'm trying to install Altera Complete Design Suite 7.2 , in Debian GNU/Linux 7, Kernel Linux 3.16.0-4-686-pae , with csh versão 20110502-2.1 .

Script Excerpt:

#!/bin/csh
#  Altera Tools Install Script
.
.
.

unalias *

if ( $?QINST_VERBOSE ) then
    set expert_mode = 1
else
    set expert_mode = 0
endif


if ( $?QINST_DEBUG ) then
    set debug = 1
else
    set debug = 0
endif

.
.
.
    
asked by anonymous 07.06.2015 / 22:12

1 answer

1

The correct one would be:

if ( $?QINST_VERBOSE ) 
then
    set expert_mode = 1
else
    set expert_mode = 0
fi


if ( $?QINST_DEBUG ) 
then
    set debug = 1
else
    set debug = 0
fi
    
07.06.2015 / 23:02