Code QuizAdvanced

Backgrounding a process the wrong way

Spot the shell mistake that stops a long-running job from truly running in the background.

Codebash
#!/bin/bash
# Start a long-running task and keep working in the shell

./backup.sh > backup.log 2>&1 &
wait
echo "Backup PID was: $!"

What is the bug that prevents this script from working as intended?