View Single Post
  #1   (View Single Post)  
Old 10th November 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Default Am I blind? syntax error: `(' unexpected

So I am trying to convert my bash script into ksh, and this is what I have in the file so far:

Code:
#!/bin/ksh

login()
{
        if [ "$ALPHA" = "" ]
        then
sendcmd BETA
else
sendcmd "$(xxd -c 32 -g 0 ${ZETA_ZETA} | awk '{print $2}')"
        fi
}
But when I run it:
Code:
$ ./test.sh  
./test.sh[3]: syntax error: `(' unexpected
Am I not seeing something here? I closed all of my () and I don't see any open parentheses...
Reply With Quote