Forcing evaluation of commands

Another built-in function is eval which takes the arguments on the command line and executes them as a command. For example:

   #!/bin/sh
   echo "enter a command:"
   read command
   eval $command

[Home] [Search] [Index]