<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">It would be hard to fix; tcsh does not have a proper LALR parser and it will need to be context dependent. I am not sure that the complexity and the extra bugs it might introduce makes the endeavor worth trying for the convenience.<div><br></div><div>christos<br><div><br><blockquote type="cite"><div>On Jun 17, 2023, at 7:33 AM, M G P <tateusg@hotmail.com> wrote:</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<div><p><defanged_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:</defanged_div></p><defanged_div><p><defanged_div>if ! ! ( 1 ) echo ok</defanged_div></p><defanged_div><p><defanged_div>exit !! ( 1 )</defanged_div></p><defanged_div><p><defanged_div><br>
</defanged_div></p><defanged_div><p><defanged_div>The if example works okay, but the exit example expands to history substitution. Is this likely a bug to be fixed?</defanged_div></p><defanged_div>
</defanged_div></defanged_div></defanged_div></defanged_div></defanged_div></div>
-- <br>Tcsh mailing list<br>Tcsh@astron.com<br>https://mailman.astron.com/mailman/listinfo/tcsh<br><span id="cid:4E545892-4CB3-4593-B562-24BAC426CFFA"><sanitizer.log></span></div></blockquote></div><br></div></body></html>