I have come across an issue with cp command.We are using ksh and cp command goes like belowcp -p $PATH/file_name_${VARIABLE}_???.dat $PATH/file_name_to.dat??? - is for any three digit numbers. This has been running in a job for long time without any issues. All of a sudden, today this job failed with this error.**cp -p $PATH/file_name_20140911_942.dat $PATH/file_name_20140911_942.dat $PATH/file_name_to.datcp: $PATH/file_name_to.dat: A file or directory in the path name does not exist.**$PATH was expanded correctly in our job log. Could someone clarify me what could have caused the from file to appear twice in cp command which caused it to fail. 
AIX question on cp command
shell script;cp