Bangladesh lost three quick wickets and was struggling at 11-3 in pursuit of a victory target of 274 against South Africa after giving itself a sight of victory in the first test and another piece of history on Sunday.
Bangladesh took nine wickets for 88 runs in the last two sessions of the fourth day to bowl South Africa out for 204 in its second innings when it looked like the home team was about to build an unassailable lead.
But just as South Africa lost quick wickets to change the complexion of the match and raise Bangladesh's hopes of a first test win over the Proteas, so the Bangladesh batsmen slumped at the start of their chase to see it seesaw back in the home team's favor.