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
{{ message }}
Repository navigation
Failed parsing compound operator without brackets in function body. #239
In Bash, you can have anything listed in compound operators as function body, including [[ ... ]], ((...)), if ...; then ...; fi, etc. But the parser failed to parse those.
For example:
is_foo() [[ "$1"= foo ]] # The parser failed in here because there's no brackets.
assert()
if!$1;then# Failed here because there's no brackets and the parser expected one.echo"${2:-assertion failed}">&2return 1
fi
Activity