Openers Abid Ali and Abdullah Shafique both hit unbeaten fifties to put Pakistan in command of the first Test against Bangladesh on Monday in Chittagong.
With a target of 202, the visitors reached stumps at 109-0, needing only 93 runs on the final day on Tuesday.
At the end of the day’s play, Ali was batting on 56, adding to his first-innings score of 133, while debutant Shafique was unbeaten on 53.
Earlier, fast bowler Shaheen Afridi took 5-32 to help Pakistan bowl out Bangladesh for 157 runs in their second innings, despite wicketkeeper-batsman Liton Das scoring a fighting fifty.
Bangladesh looked doomed after losing Mushfiqur Rahim in the first over of the day, but Liton, who hit a century in the first innings, hauled the hosts back into contention with 59 off 89 balls.
Afridi caught Liton leg-before and then bowled Abu Jayed for a duck to complete his fourth five-wicket haul in Tests. Sajid Khan, who finished with 3-33, completed the victory by dismissing Taijul Islam.
Mushfiqur hit a boundary off the first ball of the morning, bowled by Hasan Ali, giving the hosts a good start.
But two balls later, he miscued a delivery and was out for 16 after Hasan struck off-stump.
Liton teamed up with overnight batsman Yasir Ali to avert a fur
Sajid was rewarded for his perseverance when he caught Mehidy Hasan leg-before for 11 points.
Substitute Nurul Hasan took over as Yasir’s replacement after Mehidy was fired, and he narrowly survived a strong caught-behind appeal just before lunch.
After the break, Nurul heaved one to Faheem Ashraf at long-on off Sajid, dismissing him for 15, and Pakistan took the remaining wickets quickly.
Bangladesh has yet to defeat Pakistan in any of its previous ten meetings.
Just as they appeared to be on the rise, Afridi’s low bounce clipped Yasir’s helmet, forcing him to retire hurt after scoring 36 points.
Liton was given out on 26 after being caught at the short leg off Sajid Khan.
The ball only hit his pad and was rolling down his leg, according to the replay.