Hi, On 18 September 2017 at 19:56, Mouse <mo...@rodents-montreal.org> wrote: > At work, I have to use a Linux machine whose indent(1) manpage says, in > part, > > BUGS > Please report any bugs to bug-indent@gnu.org. > > When indent is run twice on a file, with the same profile, it should > never change that file the second time. With the current design of > indent, this can not be guaranteed, and it has not been extensively > tested. > > The second paragraph seems to indicate that non-idempotency is > considered a bug; in case you people consider it enough of a bug to be > worth tracking down, I have a test case which misbehaves for me (with > the OS's indent(1); "indent --version" reports "GNU indent 2.2.11"). > If it still misbehaves with your current version, it might be useful as > a test case. > > Command line: indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 -il0 > > There are two input files below, each one base64ed; the above command > transforms each into the other. (That is, cascaded runs alternate > between the two.)
I can confirm this is still the case with the current hg version of indent. I will look into it when I have more time. -- Cheers, Andrej _______________________________________________ bug-indent mailing list bug-indent@gnu.org https://lists.gnu.org/mailman/listinfo/bug-indent