Kernighan & Pike are describing the "standard" (Bourne) shell, not the Cshell. Other things they describe will also not work under the Cshell. You seem to have stumbled on the fact that !anything usually triggers one of the "history" features of the Cshell (which also has "echo" built-in, by the way).