<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div>I noticed it's possible to double the unary ! operator in expressions, just like in C. However, without a whitespace, it expands to history substitution:</div>
<div>if ! ! ( 1 ) echo ok</div>
<div>exit !! ( 1 )</div>
<div><br>
</div>
<div>The if example works okay, but the exit example expands to history substitution. Is this likely a bug to be fixed?</div>
</body>
</html>