Question

$$\left. \begin{array} { l } { x ^ { 3 } - 2 x ^ { 2 } - x + 2 } \end{array} \right.$$

Evaluate

$\left(x-2\right)\left(x^{2}-1\right)$