[cs631apue] copying a file to itself

kthompso kthompso at stevens.edu
Wed Sep 14 09:24:36 EDT 2016


This is tested in the checkCopyFailures() test case.  The expected
functionality is that the program will return an error.

https://www.cs.stevens.edu/~jschauma/631/testcp.sh

-Kyle

On 09/14/2016 12:55 AM, mseaton wrote:
> The standard version of cp does not allow copying a file to itself in
> the same directory, that is cp file1 file1. The system says the source
> and destination are the same. Should our code behave in this manner?
> Marlon
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue


More information about the cs631apue mailing list