aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-02-07 10:03:04 +0000
committerRon Yorston <rmy@pobox.com>2023-02-07 10:03:04 +0000
commit4b894b60ae377ee2a04ae209c14bb1e714ecf6f4 (patch)
tree8f42f36eb0a9dad2c712f7b0e07aff7dee059217 /init
parentc49b8b7052bb1df3ed5f9aeba61a7965d9c77f83 (diff)
downloadbusybox-w32-4b894b60ae377ee2a04ae209c14bb1e714ecf6f4.tar.gz
busybox-w32-4b894b60ae377ee2a04ae209c14bb1e714ecf6f4.tar.bz2
busybox-w32-4b894b60ae377ee2a04ae209c14bb1e714ecf6f4.zip
ash: change CRLF handling
As noted in commit 2d848eba5 (ash: fix CRLF handling) all CRs are removed when scripts are read. Allow an alternative approach (configurable at build-time, enabled by default): - Do not strip CRs from input. - Treat CR as similar to space or tab in base syntax mode. - Adjust pgetc_eatbnl() to handle backslash-CRLF in the same way as backslash-LF. With these changes scripts containing CRLF line endings are more likely to work. Adds 48-56 bytes. (GitHub issue #285)
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions