Package: sed
Version: 4.2.2-4+b1
Severity: normal

Sed silently fails when -n option is specified first and leaves
the file blank. Thus resulting in the loss of the file contents.
Example:
    # cd /tmp
    echo 'foo' > test
    sed -ni 's/foo/bar/' test # fails

    echo 'foo' > test
    sed -in 's/foo/bar/' test # works

Reply via email to