From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fd705,4fa3cf2c993211a2 X-Google-Thread: 108717,4fa3cf2c993211a2 X-Google-Thread: 1164f8,4fa3cf2c993211a2 X-Google-Thread: 1094ba,4fa3cf2c993211a2 X-Google-Thread: 10adee,4fa3cf2c993211a2 X-Google-Attributes: gidfd705,gid108717,gid1164f8,gid1094ba,gid10adee,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!pln-w!spln!rex!extra.newsguy.com!newsp.newsguy.com!news2 From: "Charlie Gibbs" Newsgroups: alt.folklore.computers,comp.programming,comp.sys.dec,comp.lang.fortran,soc.culture.nordic Subject: Re: The Helsinki Code Date: 13 Dec 05 08:03:15 -0800 Organization: http://newsguy.com Message-ID: <1406.208T760T4834077@kltpzyxm.invalid> References: <1134362645.916762.143340@g43g2000cwa.googlegroups.com> <1372.207T2978T8186159@kltpzyxm.invalid> NNTP-Posting-Host: p-095.newsdawg.com X-Newsreader: THOR 2.5a (Amiga;TCP/IP) Xref: g2news1.google.com alt.folklore.computers:20630 comp.programming:13182 comp.sys.dec:1432 comp.lang.fortran:11587 soc.culture.nordic:8466 In article , jwright@comcast.net (Joe Wright) writes: > Charlie Gibbs wrote: > >> Microsoft probably already holds the patent. The COPY command in >> COMMAND.COM and CMD.EXE will not copy a zero-length file; this is >> to discourage piracy. > > That's not true Charlie. There is no exception made for zero-length > files. Certainly not here under XP Pro. I happened to have a 0-length > file called babel. At my cmd prompt 'copy babel zero' results in a new > empty file named zero. Hot damn. So they finally fixed it! No version of MS-DOS would copy a zero-length file, and neither does my Win98 box. But I just tried it on a Win2k box and it worked. This is strange indeed, considering how careful Microsoft usually is about maintaining "bug-compatibility". In fact, I've even read of people exploiting this little "feature" in batch files to check whether a file is empty (copy to a work file then do an IF EXIST). I've always been a bit sensitive about this one, ever since an early beta site lost a month's worth of data because of it. The experience taught me to be very wary of the COPY command. -- /~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs) \ / I'm really at ac.dekanfrus if you read it the right way. X Top-posted messages will probably be ignored. See RFC1855. / \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!