Skip to content

test(issue3578): pin dual heredoc binds under the fd soft limit (Refs #3578) - #3895

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/3578-dual-heredoc-under-limit
Nov 18, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/3578-dual-heredoc-under-limit

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes #3578. Adds 6 regression pins for dual heredoc binds under the fd soft limit (confirming #3752 fix).

…3578)

The core fix already landed via #3752 (b69e175): the exec redirect walk
pairs each numbered heredoc/here-string entry with its heredoc_redirects
twin at its own list position (GNU redir.c do_redirections ordered walk,
here_document_to_fd materialization). This adds dedicated regression pins
for the under-limit class the issue title describes — exec 14<<A 15<<B
under ulimit -n 16 — plus boundary variants: multi-line bodies, reversed
fd order, three heredocs at the boundary, heredoc+here-string mix, and
persistence into the next command. Byte-identical to WSL GNU Bash 5.3.20
on all six scripts.

Residuals found during review filed separately: #3892 (exec {var} binds
lost on later-entry failure — GNU varassign entries carry no undo record,
redir.c:972/1091/1153), #3893 ({var}<< allocation deferred to walk tail),
#3894 ({var}<< body double-bound to fd 0 on simple commands).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666
caomengxuan666 merged commit 8e7e8b2 into master Nov 18, 2026
7 of 12 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/3578-dual-heredoc-under-limit branch November 18, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

heredoc: 限下双 heredoc 同 list 绑定丢失第一条(exec 14<<A 15<<B,#3576 复核带出的存量缺陷)

1 participant