aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sh.tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ash: improve CRLF handling in readRon Yorston2023-02-121-0/+16
| | | | | | | | | | | Commit deae0c7bf3 (Skip carriage return in read builtin command) caused all CRs to be removed from input to the read builtin. Only remove CRs that are part of a CRLF pair. Adds 64-80 bytes. (GitHub issue #285)
* ash: remove CRs from CRLF during field splittingRon Yorston2023-02-101-1/+5
| | | | | | | | | | | | | 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)
* ash,make: fix CRLF handlingRon Yorston2023-01-301-0/+6
| | | | | | | Fix remove_cr() so it only removes CRs which are part of a CRLF pair, not every CR. Add a test case for the shell.
* testsuite: added test cases for the shebangNiklas DAHLQUIST2019-05-031-0/+90
Signed-off-by: Niklas DAHLQUIST <niklas.dahlquist@st.com> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com> Signed-off-by: Ron Yorston <rmy@pobox.com>