consider the following terminal output (inside a .sh file)
kagura@mylaptop1 : ~ => sudo cp -a "$_source/*.txt" $_destination/Other/ Password: cp: /home/myuser/*.txt: No such file or directory 08:06:13 Thu Jun 14 kagura@mylaptop1 : ~ => sudo cp -a $_source/*.txt $_destination/Other/ 08:06:33 Thu Jun 14 kagura@mylaptop1 : ~
The one with double quotes fails while the one without successfully runs.
I had the impression that double quoting when it comes to path/files is safe in the possibility that the path or file has a space.
Thanks for the help