Skip to content

using --reduce-factor disables --except #31

@idallen

Description

@idallen

This is from iprange 1.0.5_master.

First, set up two test files:

    $ cat <<EOF >in
    1.2.3.4
    1.2.3.5
    1.2.3.6
    9.9.9.6
    9.9.9.7
    9.9.9.8
    9.9.9.9
    EOF

    $ cat <<EOF >except
    1.2.3.4
    1.2.3.5
    1.2.3.6
    EOF

Without using --reduce-factor I get the expected output:

    $ iprange in --except except >out
    $ iprange in --diff out
    1.2.3.4/31
    1.2.3.6

Using any value of --reduce-factor causes the --except to be ignored:

    $ iprange in --except except --reduce-factor 0 >out
    $ iprange in --diff out
    $ iprange in --except except --reduce-factor 10 >out
    $ iprange in --diff out
    $ iprange in --except except --reduce-factor 90 >out
    $ iprange in --diff out
    $ diff in out
    $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions