Closed
Description
I just had reason to use bitwise math expressions in a bash script, and realized that it could be useful to have in Fish, as well. Unfortunately, codeplea/tinyexpr#22 (comment) indicates that, absent the use of a fork (BobBurns/tinyexpr), tinyexpr
will not support bitwise expressions (the reasoning for this is good).
I’m wondering if there’s a way to add these. For the specific use case I have (conditional command execution), it is possible to use contains
, but there are other cases where it might be useful to have bitwise operations.