[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug: 2.2.11 not idempotent
From: |
Andrej Shadura |
Subject: |
Re: Possible bug: 2.2.11 not idempotent |
Date: |
Mon, 3 Sep 2018 12:55:13 +0200 |
Hi,
On 18 September 2017 at 19:56, Mouse <address@hidden> wrote:
> At work, I have to use a Linux machine whose indent(1) manpage says, in
> part,
>
> BUGS
> Please report any bugs to address@hidden
>
> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Possible bug: 2.2.11 not idempotent,
Andrej Shadura <=