You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
((!0)) && echo true || echo false # bash: !0: event not found
I believe this is only true for interactive shells since this syntax triggers history expansion. It's perfectly fine to use it from within a script by the very default, unless you explicitly enable histexpand|history there as well (which I guess is a valid use-case, though I personally prefer to trace the entire thing rather then save a history of it).
By default, shfmt removes brackets within parentheses, but this breaks certain kinds of expressions.
For example:
shfmt will format this into:
The text was updated successfully, but these errors were encountered: