diff options
author | Ron Yorston <rmy@pobox.com> | 2023-02-07 10:03:04 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-02-07 10:03:04 +0000 |
commit | 4b894b60ae377ee2a04ae209c14bb1e714ecf6f4 (patch) | |
tree | 8f42f36eb0a9dad2c712f7b0e07aff7dee059217 /arch | |
parent | c49b8b7052bb1df3ed5f9aeba61a7965d9c77f83 (diff) | |
download | busybox-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 'arch')
0 files changed, 0 insertions, 0 deletions