i have a case statement which branches to different sections based on an input. Each branch needs to call a function. below is the code. FOr some reason, the code inside the function is not getting executed. the code is below for reference.
in the below code echo "Function 1" which is there inside the function does not get executed. please let me know the fix for the same. thanks
#!/bin/ksh
function fn_1
{
echo "Function 1"
}
function fn_2
{
echo "Function 2"
}
ARG=DQ
case $ARG in
DQ)
fn_1()
;;
MP)
fn_2()
;;
*)
echo "Others"
;;
esac