title: concatenate a function with string and execute it
body: <blockquote>
    <p>I wanna concatenate a command specified in a function with string and execute it after.<br>
    I will simplify my need with an exemple to execute "ls -l -a"</p>
  </blockquote>
  
  <pre><code>#!/bin/bash
  
  echo -e "specify command"
  read command                                 # ls
  
  echo -e "specify argument"
  read arg                                     # -l
  
  test () {
  $command $arg
  }
  
  eval 'test -a'
  </code></pre>
  
  <blockquote>
    <p>Except that </p>
  </blockquote>