Bug ID: 230507
           Summary: sed 'q' command preventing -i from creating backup
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin

To reproduce

    $ jot 5 > a
    $ wc -c a # it's 10 bytes
    $ sed -e '/2/d;q' a # this is the expected output
    $ sed -i.bak '/2/d;q' a # demonstrate issue
    $ wc -c a # it's still 10 bytes
    $ ls a*  # there's no a.bak file

I've not yet traced down the source of the issue, but there seems to be some
odd interaction between `q` and `-i`.

Original thread on Twitter where the issue was noticed:

You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to