another unix joke

Rahul Dhesi dhesi at bsu-cs.UUCP
Fri Sep 16 02:43:23 AEST 1988


I like the fact that 4.3BSD treats names like "xyz/" correctly.  Under
System V Release 2, if you give a command like

     mv junk xyz/

your obvious intent is to move the file "junk" into the directory
"xyz".  But if the directory "xyz" does not exist, then "junk" just
gets renamed to "xyz".  The joke is on the user.

Under 4.3BSD if you type "mv junk xyz/" and the directory "xyz" does
not exist you get an error message.

For obvious reasons, I added comp.bugs.sys5 to the newsgroups list.
-- 
Rahul Dhesi         UUCP:  <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi



More information about the Comp.unix.questions mailing list