Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site mtxinu.UUCP Path: utzoo!watmath!clyde!cbosgd!cbdkc1!desoto!packard!hoxna!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!qantel!dual!unisoft!mtxinu!ed From: ed@mtxinu.UUCP (Ed Gould) Newsgroups: net.unix-wizards Subject: Re: Unix already has "attributes"... Message-ID: <452@mtxinu.UUCP> Date: Fri, 23-Aug-85 19:35:08 EDT Article-I.D.: mtxinu.452 Posted: Fri Aug 23 19:35:08 1985 Date-Received: Tue, 27-Aug-85 06:17:35 EDT References: <3398@decwrl.UUCP> <2000018@ccvaxa> <1314@eagle.UUCP> <2636@sun.uucp> Reply-To: ed@mtxinu.UUCP (Ed Gould) Organization: mt Xinu, Berkeley, CA Lines: 19 In article <2636@sun.uucp> gnu@sun.uucp (John Gilmore) writes: >Unix is not pristine about this either. Why do you have to copy >executables with "cp" rather than "cat" or "dd"? They won't execute if >you cat them...because the file permissions ("attributes" of the >original) are specifically propagated by code in "cp", but not by >"cat". The reason is that cp is the utility to copy files. Neither cat nor dd is, even though it's possible to use them to make copies. Cat takes named files and/or standard input and places the catenation of them on standard output. Dd is a data manipulation program. There's no reason to assume that what comes out of either has any obvious relation to an executable that goes in. -- Ed Gould mt Xinu, 2910 Seventh St., Berkeley, CA 94710 USA {ucbvax,decvax}!mtxinu!ed +1 415 644 0146 "A man of quality is not threatened by a woman of equality."