When I am calling function in shell script like it's not working
testfunction
but if I call function like below it's working
$(testfunction);
Any thoughts? I am running bash shell on Ubuntu
Thank you, Sambhav
Hi All, Here is a sample script and function decl. and call. As mentioned in the question the funcation call - function is not working but $(function is working)
#!/bin/bash
TITLE=My Title";
########FUNCTIONS
### Function Declaration
test() { echo "echoing test"; }
cat << EOF <html> <head> <TITLE>"$TITLE"</TITLE>
</head>
</body>
### Calling the function here - Not working test
#### The Below function call is working $(test)
</body>
</html>
EOF