emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

${var%;*} parses incorrectly #159

Open mawww opened 4 years ago

mawww commented 4 years ago

${var%;*} should remove whatever follows the last ; in var, but it fails to parse with syntax error: expected end of parameter, it seems like the semicolon is treated as an end of command.