Had really unexpected results discovering how this works - everything between those selected track numbers gets selected, midi tracks and whatnot.
Then doing quick link operation on that and you are in for a treat.
Example
You click and select one track in mixer, then shift click ten tracks to the right - you only expect those visible there to be selected.
Not all hidden folders, midi tracks etc in between as well.
So please handle exactly as seen, like in mixer or project view where you do it.
Or a setting to decide how you want it - a checkbox to only select as visual state say.
Workaround is obviously Ctrl click every track instead, but tedious operation if many tracks involved.