diff options
author | Ron Yorston <rmy@pobox.com> | 2023-02-10 12:54:03 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-02-10 13:21:02 +0000 |
commit | d9916c6344c806696554115baa764eea09ca5f08 (patch) | |
tree | a25f6f4aaf4e91915b615af7e4bbc09bd68f6ac9 /TODO | |
parent | 4b894b60ae377ee2a04ae209c14bb1e714ecf6f4 (diff) | |
download | busybox-w32-d9916c6344c806696554115baa764eea09ca5f08.tar.gz busybox-w32-d9916c6344c806696554115baa764eea09ca5f08.tar.bz2 busybox-w32-d9916c6344c806696554115baa764eea09ca5f08.zip |
ash: remove CRs from CRLF during field splitting
Commit e371e46fa0 (shell: add \r to IFS) added '\r' to the IFS
variable so field splitting would remove carriage returns.
Rather than change IFS, remove CRs preceding LFs in regions
being scanned for field splitting before IFS is applied. This
prevents free-standing CRs from being removed.
Costs 112-120 bytes.
(GitHub issue #285)
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions