I am using korn shell.
When i use the following syntax i get error:
#!/usr/bin/ksh
funtion ABC {
echo hello world
}
###MAIN##
ABC
ERROR:
ABC not found.
The below code runs fine:
#!/usr/bin/ksh
ABC () {
echo hello world
}
###MAIN##
ABC
The syntax for korn is
function NAME { statements }
Please help why this is not working.