We are executing below commands
rm -f $folder_name/filename*
cp $folder_name1/filename1* $folder_name/
After checking the execution log we get following command executions
rm -f '/home/user/file*'
cp /home1/user1/file1* /home/user/
Why rm
executes with a single quote and not cp
command?