#!/bin/bash
if [ -z "$1" ]
then
echo "No argument supplied"
exit
fi
if [ "$1"="abc" ] ; then
abc
exit
fi
if [ "$1" = "def" ]; then
def
exit 1
fi
function abc()
{
echo "hello"
}
function def()
{
echo "hi"
}
Here abc is a function which has local definition. But Bash is giving error "./xyz.sh: line 10: abc: command not found". Please give me any Solution?