The *
character is a pattern-matching wild card character.
It matches zero or more arbitrary characters. For every command-line argument
containing this character, replace it with one or more command-line arguments
that are all valid matches from the file system. The updated command-line
arguments should be what gets passed to the child process. Here is an example:
bash$ ls
hello.py one.txt two.txt
bash$ ls *.txt
one.txt two.txt
bash$ ls *.py
hello.py
bash$
For this assignment, you need only be concerned with pattern-matching files
in the current directory. You may also assume that there
will be no more than one occurrence of the pattern-matching character.