Closed kitlith closed 8 years ago
What shell is this?
You need either new line or ; at the end of your function before you close it on any POSIX-compatible shell, bash, zsh, ask, ksh etc. kitling is correct.
compound_list : term
| newline_list term
| term separator
| newline_list term separator
;
brace_group : Lbrace compound_list Rbrace
;
That reads like single term
with no separator
is completely valid. zsh deals with this correctly, but bash does not. This seems more like bash not being spec-compliant. Someone should probably file a bug.
Though I don't care about the others, I suppose the examples should be copy-pasteable in at least bash and zsh…
f5c4e7437189d6a739ae54cdc1d07fa4c08cf3fb
Sorry, haven't been looking at Github.
Although it seems moot at this point, I will add that I was using bash on Arch Linux.
For lack of a better place to put this, your website has this (for example):
where it needs to be
It's very subtle, it's just missing a semicolon, but that causes it to fail.