Bangladesh, set a victory target of 550 runs, were 63 for one in their second innings at stumps on the third day of the second and final Test against Pakistan on Friday.
Tamim Iqbal was unbeaten on 32 and Mominul Haque was on 15 with Bangladesh needing to bat out six sessions over the last two days to avoid defeat in the short series.
Imrul Kayes was bowled by Yasir Shah for 16.
Bangladesh were bowled out for 203 in their first innings before lunch, but Pakistan did not enforce the follow-on - despite enjoying a mammoth lead of 354 runs.
Pakistan declared their second innings after tea at 195-6 with skipper Misbah-ul Haq leading the charge with a 72-ball 82 that included nine boundaries and three sixes.
The first Test ended in a draw in Khulna last week.