I think you'll find a post or two on that topic inside the country forum ..
But basically you can buy a bike in another country .. then sell it before you leave .. provided you are selling it in the same country .. selling it in an other country means you are importing it - so duties and compliance with local regulations become a problem.
So why do people ship their bikes? - because they are not returning to the starting place (unless you count home) .. so would have to sell and buy at each and every boarder .. there is also the set up time and experience with their own bike ..
Regards Frank Warner
motorcycles BMW R80 G/S 1981, BMW K11LT 1993, BMW K75 G/S