home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,281 of 264,096   
   Craig A. Berry to All   
   Re: GNU diff command, was: Re: Fun trick   
   20 Jan 25 17:34:53   
   
   From: craigberry@nospam.mac.com   
      
   On 1/19/25 6:25 AM, hb0815 wrote:   
   > On 1/17/25 15:39, Craig A. Berry wrote:   
   >>   
   >> On 1/17/25 8:07 AM, Craig A. Berry wrote:   
   >>>   
   >>> it should be   
   >>> possible to get diffs outside a repository with "git diff --noindex".   
   >>> That said, I tried it just now and couldn't get it to work.   
   >>   
   >> It does work, but not for VFC files and it cannot handle version numbers   
   >> in a filename, so its usefulness on VMS is pretty limited.   
      
   > Using git to get a the output in the Unix/GNU diff style seems overkill   
   > to me.   
   >   
   > As you probably know, if you can get the GNV diff utility, you can run   
   > it from DCL.   
      
   git is available for OpenVMS x86. GNV is not yet, as far as I have seen,   
   so it seemed worth giving a quick try with something people may already   
   have installed.  And to be a bit pedantic, there is no "GNV diff"; there   
   is GNU diff, which may have been included in various GNV packages.  It   
   is also available various other places, such as   
      
   http://www.antinode.info/dec/sw/diffutils.html   
      
   > To handle VMS file version, there is a workaround. Assumed gdiff is the   
   > DCL symbol for the GNV diff utility:   
   >   
   > $ pipe define/user decc$filename_unix_only 0 && -   
   >    gdiff -ub sys$disk:[]x.com;1 sys$disk:[]x.com;2   
   >   
   > As indicated, you may need a full file spec and the files have to be in   
   > Stream_LF record format.   
      
   The GNU diff I've been using for 24 years does not have those   
   limitations, and also conveniently does command-line redirection:   
      
   https://www.digiater.com/openvms/freeware/v50/gnudiffutils/   
      
   Sometime I need to get up-to-date on Steven Schweda's port and see what   
   I'm missing.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca