O'Reilly logo
  • Henry Huang thinks this is interesting:

The caret character invokes negation only if it is the first character within a bracket expression; otherwise, it loses its special meaning and becomes an ordinary character in the set.


Cover of The Linux Command Line


Only if it is the first position