diff options
author | Martin Kühl <martin.kuehl@posteo.net> | 2020-01-07 23:27:39 +0100 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2020-01-07 18:13:02 -0500 |
commit | 194178b5788a09379e01e8ff8bff391b8a8d5c18 (patch) | |
tree | 19c659e08865ec0269d1062f774606aa70a4007c /src/lib9/fmt/charstod.c | |
parent | e6ed10f25e4b2ea791d8e52253f7d806316420e9 (diff) | |
download | plan9port-194178b5788a09379e01e8ff8bff391b8a8d5c18.tar.gz plan9port-194178b5788a09379e01e8ff8bff391b8a8d5c18.tar.bz2 plan9port-194178b5788a09379e01e8ff8bff391b8a8d5c18.zip |
9c: Fix case patterns for DragonFly and other BSDs
POSIX does not support grouping in case item patterns.
Installing with a strict POSIX shell fails with:
/usr/local/plan9/bin/9c: line 82: syntax error near unexpected token `('
/usr/local/plan9/bin/9c: line 82: `*(DragonFly|BSD)*gcc*) usegcc ;;'
This change expands the patterns to work around the limitation.
See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10
(and search for case_clause)
Diffstat (limited to 'src/lib9/fmt/charstod.c')
0 files changed, 0 insertions, 0 deletions