#1140355 dash fails to parse redirect fds > 9

Package:
dash
Source:
dash
Description:
POSIX-compliant shell
Submitter:
John Spencer
Date:
2026-06-18 22:15:01 UTC
Severity:
normal
Tags:
#1140355#5
Date:
2026-06-18 21:46:41 UTC
From:
To:
Dear Maintainer,

dash fails to parse redirect fd numbers > 9. it only recognizes single-digit
fd numbers, which is not spec-compliant, surprising and uncomfortable, since
i now need to add a dependency on bash to something i wanted to ship as
POSIX shell for best compatibility.

Patch is available here:

https://raw.githubusercontent.com/sabotage-linux/sabotage/b659f4cab100156315e073758e15b8b4432692c7/KEEP/dash-redir.patch

#1140355#10
Date:
2026-06-18 22:13:00 UTC
From:
To:
bleh, the previous patch has a subtle bug i overlooked. this one here is good:

https://raw.githubusercontent.com/sabotage-linux/sabotage/master/KEEP/dash-redir.patch

sorry for the confusion.