Length of shortest walk always equal to length of shortest path in an undirected graph?
The two definitions are equivalent, because for every walk between $u$ and $v$, there exists a path between $u$ and $v$, and the length of the path is equal to or smaller than the length of the walk.