Egypt grabbed top spot in Group D at the African Nations Cup Group D on Wednesday as Mohammed Salah rifled home a superb free kick to seal a 1-0 victory over Ghana in Port Gentil.
There was also a first goal and a first point in 39 years for Uganda at the continental championship, but no victory as they were held 1-1 by Mali on a rain-soaked pitch in Oyem.
Egypt’s win set up a quarter-final meeting with Morocco at the same venue on Sunday while Ghana move to Oyem to face Group C winners the Democratic Republic of Congo.
Seven-times winners Egypt, marking their return to the tournament after a seven-year absence, were the only team not to concede a goal in the pool phase.
Ghana lost veteran forward Asamoah Gyan to a groin injury five minutes before halftime and coach Avram Grant is unsure whether he will be fit for the quarter-finals.