[Tcsh] Double unary ! operator is expanded to history substitution.
Christos Zoulas
christos at zoulas.com
Sat Jun 17 12:27:55 UTC 2023
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.
christos
> On Jun 17, 2023, at 7:33 AM, M G P <tateusg at hotmail.com> wrote:
>
> 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:
>
> if ! ! ( 1 ) echo ok
>
> exit !! ( 1 )
>
>
>
> The if example works okay, but the exit example expands to history substitution. Is this likely a bug to be fixed?
>
> --
> Tcsh mailing list
> Tcsh at astron.com
> https://mailman.astron.com/mailman/listinfo/tcsh
> <sanitizer.log>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20230617/19e45654/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20230617/19e45654/attachment.asc>
More information about the Tcsh
mailing list