The shell expands the wildcard character * to all non-hidden filenames in the current directory before passing them to the echo command, which displays them separated by spaces. The PID of background jobs is retrieved using $! or jobs, and there is no syntax error.