Square wave spectrum and knee frequency
Your signal has high-frequency content due to the discontinuities in the derivative due to building it as a piecewise linear waveform. 

Try turning the problem around. 

Make a "realistic" square wave by passing an ideal square wave through a low-pass filter. 

Now compare the resulting rise-time with the knee frequency, and see what you get.