Re: GNU diff command, was: Re: Fun trick

Liste des GroupesRevenir à co vms 
Sujet : Re: GNU diff command, was: Re: Fun trick
De : craigberry (at) *nospam* nospam.mac.com (Craig A. Berry)
Groupes : comp.os.vms
Date : 21. Jan 2025, 00:34:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vmmmiu$3h0i7$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
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.

Date Sujet#  Auteur
8 Jan 25 * Fun trick39Arne Vajhøj
8 Jan 25 +- Re: Fun trick1Lawrence D'Oliveiro
8 Jan 25 +* Re: Fun trick11John Reagan
8 Jan 25 i`* Re: Fun trick10Arne Vajhøj
8 Jan 25 i `* Re: Fun trick9John Reagan
8 Jan 25 i  +* Re: Fun trick2Arne Vajhøj
8 Jan 25 i  i`- Re: Fun trick1Arne Vajhøj
8 Jan 25 i  `* Re: Fun trick6Arne Vajhøj
14 Jan 25 i   `* Re: Fun trick5John Reagan
14 Jan 25 i    `* Re: Fun trick4Lawrence D'Oliveiro
14 Jan 25 i     `* Re: Fun trick3Arne Vajhøj
14 Jan 25 i      +- Re: Fun trick1Arne Vajhøj
15 Jan 25 i      `- Re: Fun trick1John Reagan
8 Jan 25 `* Re: Fun trick26hb0815
8 Jan 25  `* Re: Fun trick25Arne Vajhøj
8 Jan 25   `* Re: Fun trick24hb0815
9 Jan 25    `* Re: Fun trick23Arne Vajhøj
9 Jan 25     `* Re: Fun trick22hb0815
13 Jan 25      +* Re: Fun trick11Arne Vajhøj
17 Jan 25      i`* GNU diff command, was: Re: Fun trick10Simon Clubley
17 Jan 25      i `* Re: GNU diff command, was: Re: Fun trick9Craig A. Berry
17 Jan 25      i  `* Re: GNU diff command, was: Re: Fun trick8Craig A. Berry
19 Jan 25      i   `* Re: GNU diff command, was: Re: Fun trick7hb0815
21 Jan 25      i    `* Re: GNU diff command, was: Re: Fun trick6Craig A. Berry
22 Jan 25      i     `* Re: GNU diff command, was: Re: Fun trick5hb0815
22 Jan 25      i      `* Re: GNU diff command, was: Re: Fun trick4Lawrence D'Oliveiro
23 Jan 25      i       `* Re: GNU diff command, was: Re: Fun trick3Robert A. Brooks
24 Jan 25      i        `* Re: GNU diff command, was: Re: Fun trick2Simon Clubley
25 Jan 25      i         `- Re: GNU diff command, was: Re: Fun trick1Dave Froble
13 Jan 25      `* Re: Fun trick10Arne Vajhøj
13 Jan 25       `* Re: Fun trick9Lawrence D'Oliveiro
13 Jan 25        `* Re: Fun trick8Arne Vajhøj
14 Jan 25         +* Re: Fun trick6John Reagan
14 Jan 25         i`* Re: Fun trick5Arne Vajhøj
3 Feb 25         i +- Cobol (was Re: Fun trick)1Arne Vajhøj
3 Feb 25         i `* Re: Fun trick3Arne Vajhøj
3 Feb 25         i  `* Cobol (was: Re: Fun trick)2Arne Vajhøj
5 Feb 25         i   `- Re: Cobol1Arne Vajhøj
14 Jan 25         `- Re: Fun trick1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal