Skip to content

Fix heredoc leading whitespace stripping #212

Fix heredoc leading whitespace stripping

Fix heredoc leading whitespace stripping #212

Re-run triggered January 22, 2026 14:19
Status Failure
Total duration 1m 14s
Artifacts

unit-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
unit-tests
Process completed with exit code 1.
src/spec-tests/spec.test.ts > Oils Spec Tests > builtin-read.test.sh > [L446] read with IFS='': IFS='' | read x y <<EOF | a b c d | EOF | echo "[$x|$y]": src/spec-tests/spec.test.ts#L224
AssertionError: UNEXPECTED PASS: This test was marked ## SKIP (Read with special IFS values not implemented) but now passes. Please remove the ## SKIP directive. STDOUT: expected: "[ a b c d|]" actual: "[ a b c d|]\n" STATUS: expected: (not checked) actual: 0 SCRIPT: IFS='' read x y <<EOF a b c d EOF echo "[$x|$y]" ❯ src/spec-tests/spec.test.ts:224:20
src/spec-tests/spec.test.ts > Oils Spec Tests > builtin-read.test.sh > [L418] read with IFS=$'\n': IFS=$(echo -e '\n') | read var <<EOF | a b c | d e f | EO...: src/spec-tests/spec.test.ts#L224
AssertionError: UNEXPECTED PASS: This test was marked ## SKIP (IFS with newline character not implemented) but now passes. Please remove the ## SKIP directive. STDOUT: expected: "[ a b c]" actual: "[ a b c]\n" STATUS: expected: (not checked) actual: 0 SCRIPT: # The leading spaces are stripped if they appear in IFS. IFS=$(echo -e '\n') read var <<EOF a b c d e f EOF echo "[$var]" ❯ src/spec-tests/spec.test.ts:224:20