westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.54k stars 529 forks source link

build: Use portable alternative to $'\r' in mkskel.sh #639

Closed Explorer09 closed 4 months ago

Explorer09 commented 4 months ago

(This is a follow-up to #353 . I can't reopen the old PR, so I file another one to address my point.)

Replace the $'\r' quoting in commit c674b5faa3419032a6c41cc150488866f3b3cff9 with a portable alternative cr=`printf '\r'`

Although $' ' (dollar-single-quote) quoting is proposed for inclusion in POSIX, we have not seen it in a published standard yet, so it is best to avoid it for now.

westes commented 4 months ago

Thank you!