-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, May 10, 2016 at 11:32:47AM +0200, Die Optimisten wrote: > Hello > > echo hello! # displays that, BUT: > echo "Hello!" # tells: > -su: !": event not found # this worked years before without problem! > Is that intended? These leads to errors in many scripts (including > installig package dkms) > How can this be turned off? For me this behaviou should be changed, > for example: Events should contain whitespace before or after it, > or only work outside quoting...
Note that this is only a problem in interactive mode. In batch mode the ! passes through undamaged. You can disable ! completely (look up the shell man page under 'HISTORY EXPANSION' to learn what it's good for), as has been said in this thread, or you can just escape a single ! with a backslash: \! regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlcxtpMACgkQBcgs9XrR2kZ/EQCdFxlrN2Qi4FVkl+9PrsW2aWFo 0PoAn3z+03JhPj2u07aHAqQDogTCIXe9 =0Mp1 -----END PGP SIGNATURE-----