Re: Bison 3.5.93 on AIX 7.1

Bruno Haible <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <2363467.tnQF8C3WZt@omega>
Hi Akim,

> The problem appears to be that "diff -u" is not formatted as expected,
> as shows this diff of "diff -u":
> 
> 2,9c2,9
> <    156         | . '$' non_post_simp_exp
> < 
> <      NAME  shift, and go to state 9
> < -    '$'   shift, and go to state 24
> < +    '$'   shift, and go to state 320
> < 
> <      NAME      [reduce using rule 152 (opt_variable)]
> <      '$'       [reduce using rule 152 (opt_variable)]
> ---
> >     156         | . '$' non_post_simp_exp
> >   
> >       NAME  shift, and go to state 9
> > -     '$'   shift, and go to state 24
> > +     '$'   shift, and go to state 320
> >   
> >       NAME      [reduce using rule 152 (opt_variable)]
> >       '$'       [reduce using rule 152 (opt_variable)]
> 
> This should address this problem.

Indeed, 'diff -u' on this platform inserts an extra space between the first and
the second column. Which is not compliant to POSIX
<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/diff.html>.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.