HomeFreeBSD

sh: Fix '-' from quoted arithmetic in case/glob pattern range.

Description

sh: Fix '-' from quoted arithmetic in case/glob pattern range.

It does not make much sense to generate the '-' in a pattern bracket
expression using arithmetic expansion, but it does not make sense to forbid
it either.

Try to avoid reprocessing the string if it is unnecessary.

Details

Provenance
jillesAuthored on
Parents
rS318268: MFC r316874: restore ability to shutdown(2) datagram sockets.
Branches
Unknown
Tags
Unknown