If you execute "cp /path/*" the command expands the wildcard, and treats the last file as the destination directory.
That is at it should be, * is expanded by the shell, not by the command.
If you execute "cp /path/*" the command expands the wildcard, and treats the last file as the destination directory.
That is at it should be, * is expanded by the shell, not by the command.