I know there is a specific set of rules that shell expand the commands user typed. (let's talk about bash shell.)
Is it possible to print out a command in the form after shell expansion? It seems to be a good utility to learn and make sure how shell expands special characters.
e.g.
$ echo *
{all the filenames in current dir}
I want to print out the expanded command, which is the following line:
echo {all the filenames in .}