I don't understand why my shell script doesn't work.
#!/bin/sh
getProjectsNames() {
list=`ls -a`
return $list
}
projectsNames=`getProjectsNames`
echo $projectsNames
This code is returning error:
script.sh: 6: return: Illegal number: .
Thanks for your help!