I am learning bash. I accidentally encounter a syntax error with empty function.
#!/bin/bash
# script name : empty_function.sh
function empty_func() {
}
bash empty_function.sh
empty_function.sh: line 3: syntax error near unexpected token `}'
empty_function.sh: line 3: `}'
I suppose it is because of definition of an empty function. I would like to know Why I cannot define an empty function?