Barebones copy of coreutils 'cp'
Use build.sh
:
$ chmod +x ./build.sh
$ ./build.sh
Copy a file into another:
$ ./copy src-file dst-file
Copy a directory into another:
$ ./copy src-dir dst-dir
You may notice no -r
is needed. This is a design choice so that the user can copy directories without any extra options.