Once again, I am not quite sure about your misunderstanding.
What the text is doing is constructing what are know as components in topology. A component is a maximal connected set. Components are pair-wise disjoint. In the components of an open subspace are open intervals. You are correct to worry about glbís and lubís. In the example you gave, unless is bounded, it is possible that .
Does this help you?