Skip to content

Oneline output '-o' support #17

@floatingatoll

Description

@floatingatoll

While trying to repair ddclient on OS X (cc @dkerr64), I found that the command ddclient uses:

$reply = `ip -6 -o addr show dev $arg scope global 2>/dev/null`;

Is incompatible with your Linux-compat wrapper due to the '-o' argument. I looked and I think you're already implementing -o by default:

       -o, -oneline
              output each record on a single line, replacing line feeds with the '\' character. This is convenient when you want
              to count records with wc(1) or to grep(1) the output.

So it might be as simple as just ignoring -o when passed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions