Bangladesh lead Pakistan by 179 runs with seven second-innings wickets standing and a day to play in the first Test.