Let $\mathcal{A}$ be a finite alphabet and let $(X,\sigma)$ be some subshift over $\mathcal{A}$, a non-empty, closed, $\sigma$-invariant subspace of the full-shift $(\mathcal{A}^\mathbb{Z},\sigma)$, where $\sigma \colon \mathcal{A}^\mathbb{Z} \to \mathcal{A}^\mathbb{Z}$ is the shift map given by $\sigma(x)_i = x_{i+1}$. Note that, as $\mathcal{A}^\mathbb{Z}$ is compact (with the product topology), and $X$ is a closed subspace, then $X$ is also compact.
If $X$ is infinite, is it true that there exists a non-periodic element of $X$? That is, does there exist an $x \in X$ such that $\sigma^n(x) \neq x$ for all $\sigma \in \mathbb{Z}\setminus\{0\}$?
The naive argument using compactness and a sequence of points with increasing periods doesn't work, because of the example $x_n = \cdots ba^{2n}ba^n.a^nba^{2n}b\cdots$, which each have period $2n+1$, but whose limit $x = \cdots aaaa.aaaa\cdots$ has period $1$. Of course, this doesn't consitute a counterexample, as the point $ a^\infty .b a^\infty$ is also in the subshift, so this just says that the argument is not careful enough.
I feel like a counterexample is unlikely, so either I'm missing something obvious here, or there is some obscure counterexample, as the question seems a natural one.