Syntax error in csh script

Asked

Viewed 52 times

0

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

$ ./install
$ if: Expression Syntax.

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

Excerpt from the script:

#!/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

.
.
.

1 answer

1

The right thing 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.