133 for four on the opening day of the second Test against South Africa at Newlands on Thursday.
After the South African seam attack proved unplayable with the new ball before lunch, the edges failed to carry on the slower wicket and the bowlers struggled through the afternoon session without taking a wicket.
Both Younis and Shafiq reached their half-centuries with the latter reaching the milestone of 1 000 Test runs in his 18th Test.
VIDEO: South Africa vs Pakistan 2nd test day 1, latest highlights
Mohammad Hafeez, forced into a defensive shot, got a thick outside edge to Dale Steyn, which went low to Graeme Smith at first slip.
Morne Morkel then got into the action, striking twice in one over.
Azhar Ali (4) got an outside edge straight into De Villiers’s gloves and four balls later, captain Misbah-ul-Huq, was back in the dressing room for a duck. Misbah was unable to get his bat out of the way in time and gloved one to Dean Elgar at short leg.
At tea, Younis was on 54 not out and Shafiq on 50.
Teams:
South Africa:
Graeme Smith (captain), Alviro Petersen, Hashim Amla, Jacques Kallis, AB de Villiers, Faf du Plessis, Dean Elgar, Robin Peterson, Vernon Philander, Dale Steyn, Morne Morkel
Pakistan:
Mohammed Hafeez, Nasir Jamshed, Azhar Ali, Younis Khan, Misbah-ul-Haq
(captain), Asad Shafiq, Sarfraz Ahmed, Umar Gul, Saeed Ajmal, Tanvir
Ahmed, Mohammad Irfan