Date: Fri, 10 Aug 2018 15:21:00 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230507] sed 'q' command preventing -i from creating backup Message-ID: <bug-230507-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230507 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 Assignee: bugs@FreeBSD.org Reporter: freebsd@tim.thechases.com To reproduce $ jot 5 > a $ wc -c a # it's 10 bytes 10 $ sed -e '/2/d;q' a # this is the expected output 1 $ sed -i.bak '/2/d;q' a # demonstrate issue $ wc -c a # it's still 10 bytes 10 $ ls a* # there's no a.bak file a 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: https://twitter.com/mulle_nat/status/1027907848423067650 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230507-227>