Xref: utzoo alt.sources.d:631 comp.sources.d:5572 Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!unmvax!uokmax!rmtodd From: rmtodd@uokmax.uucp (Richard Michael Todd) Newsgroups: alt.sources.d,comp.sources.d Subject: Short filenames and patch (was Re: Lots of heat, little light. (was: Unnecessary tar-compress-uuencodes) Message-ID: <1990Jul11.180105.25835@uokmax.uucp> Date: 11 Jul 90 18:01:05 GMT References: <15652@bfmny0.BFM.COM> <1990Jul10.224512.20088@alembic.acs.com> <1990Jul11.072612.10374@zorch.SF-Bay.ORG> Organization: Engineering Computer Network, University of Oklahoma, Norman, OK Lines: 23 xanthian@zorch.SF-Bay.ORG (Kent Paul Dolan) writes: >>[...] my next release of the ACS will be in the form of shar files. As an >>added bonus, all of the filenames will be under 14 characters in this >>one. >As a newbie to one of the systems that causes this concern, I note that >this isn't good enough. If you want to be able to issue patch files >that work with "patch", you have to hold the file names down to 9 or fewer >characters so that the ".orig" extensions patch creates are respected, >rather than lost, making the original have the same name as, and therefore >clobber/be clobbered by the patched version. Uh, what version of patch are you running? On my system (which is cursed with the System V Short Filenames From Hell), patch is smart enough to not try to use ".orig" as the extension for the original file; instead it uses tilde. It also uses "#" as the suffix for the reject files instead of ".rej". Hence you only need restrict yourself to 13-character filenames. It probably would be polite to restrict it slightly further, to 12 chars, in case the user wants to keep his source under RCS or SCCS, which add 2 chars to the filename (",v" at the end for RCS, "s." at the beginning for SCCS). Still, one hardly needs to be so restrictive as to limit oneself to 9-character names. -- Richard Todd rmtodd@chinet.chi.il.us or rmtodd@uokmax.ecn.uoknor.edu