Add the pasta to a large pan of boiling water, stir and bring back to the boil.
Cook for 10 minutes until cooked al dente. Drain well.
Grill the bacon until crispy and use any fat to sauté the onions until softened. Chop into pieces.
Sauté the pine nuts in a pan until lightly roasted.
Mix together the pasta, bacon, pesto, basil and onion. Warm through and add the olive oil.
Quickly add the egg mixture and fold into the pasta. Keep mixing to combine it thoroughly.
Sprinkle over the Parmesan cheese and fold in. Add black pepper to taste.