Autzoo.1503
net.bugs.v7
utcsrgv!utzoo!henry
Wed Mar 24 19:16:53 1982
cp misfeature
The command "cp <DIRECTORY> <FILE>" will work, but does not yield a very
intelligible file as a result. Most naive users don't really grasp the
notion that directories are just a special kind of file, and are confused
by the appearance of this strange little gibberish file. We found this
a headache, and since the command seems singularly useless, we added
the following code just after the assignment to "mode" in cp.c/copy():
if ((mode&S_IFMT) == S_IFDIR) {
close(fold);
fprintf(stderr, "cp: %s is a directory -- ignored.\n", from);
return(1);
}
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.