I've tried different suggestions on this website and elsewhere but nothing has worked. I need to pass some arguments to a shell script and then concatenate them on a string to then launch it as a command. So I do this
command="perl perl_script.pl"
for arg
do
command+="$arg "
done
eval $command
But I get this error
bowtie_script_simple.sh: 43: bowtie_script_simple.sh: comando+=-n : not found
bowtie_script_simple.sh: 43: bowtie_script_simple.sh: comando+=3 : not found
According to other threads I've seen that should work. Any ideas?
Thanks