Consider this little bash script:
#!/bin/bash
cmd="ls -rtl $1"
$cmd
eval $cmd
It prints the directory listing with some option set (just to make it different from a simple ls), twice. Both of the last two lines do the same thing, apparently. Is there some case, that I am not considering?
Why bother writing eval in front of the cmd?