|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
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 } Code:
$ ./test.sh ./test.sh[3]: syntax error: `(' unexpected |
|
|||
Never mind, login() is already a pre-defined function in ksh that I didn't know about. Renamed my function and now it's working fine.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blind install ? | sharris | FreeBSD General | 2 | 31st October 2010 12:29 PM |
shc unistd.h:239: error: syntax error before '&' token | laraaj | OpenBSD General | 3 | 11th September 2010 07:21 AM |
Unexpected Change of owner:group in file system | Dotiroygsbre | Other BSD and UNIX/UNIX-like | 0 | 15th August 2008 04:09 PM |
Syntax Highlighting | JMJ_coder | Programming | 17 | 22nd June 2008 02:24 PM |
relayd (and hoststated) give syntax error for 'check script' | gwl | OpenBSD Security | 2 | 2nd May 2008 04:53 PM |