From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 5 Feb 2009 03:28:14 +0100 Message-ID: <5d375e920902041828p173f0f3etdd5fabd3a65bc330@mail.gmail.com> From: Uriel To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [9fans] sed crash Topicbox-Message-UUID: 9593767e-ead4-11e9-9d60-3106f5b1d025 For those that enjoy fixing bugs: % echo foo | sed 's/..a|..b|..c|..d|..e|..f|..g|..h|..i|..j|..k|..l|..m|..n|..o|..p//g' Will crash both native and p9p sed. Yes, I know it is a nonsensical expression, but it is the simplest one that still made it crash, I have lost the original version which was much more complex. Note that providing two characters as input will still crash, but if the input line is a single character it wont crash. I have been meaning to get all the fun of tracking this one down myself for a while, but seems that I never get to it, so I will let others enjoy the fun of fixing it. Peace uriel