Bangladesh ended the first day of the first Test against Pakistan on 253-4 after recovering from a top-order collapse.
Liton Das was on 113 not out at the close in Chittagong and Mushfiqur Rahim on 82.
Pakistan's bowlers had dominated the opening session as Shaheen Afridi, Hasan Ali, Faheem Ashraf and Sajid each claimed a wicket.
Afridi set the tone for Pakistan with a gem of a delivery in the fifth over that rose sharply to glance off opener Saif Hassan's bat to Abid Ali at short leg. He made 14.
Hasan Ali then trapped the other opener, Shadman Islam, leg-before for 14.
Bangladesh skipper Mominul Haque fell soon afterwards, scoring just six as Sajid spun one sharply to take an edge that was gladly accepted by wicketkeeper Mohammad Rizwan.