[PATCH] [DNM] builtin: add source for Bash compat

Eduardo Santos <[email protected]> Thu, 28 Aug 2025 18:12:20 -0300
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Do not merge this patch; it is purely informational.

I tried using DASH in a container image for GitLab CI/CD [1] but the
runner expects the source special builtin from Bash to be available.
This one-liner fixed it for me.

[1] https://docs.gitlab.com/runner/configuration/advanced-configuration/#use-a-posix-compliant-shell

Signed-off-by: Eduardo Santos <[email protected]>
---
 src/builtins.def.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/builtins.def.in b/src/builtins.def.in
index 95e420c..7a7d68a 100644
--- a/src/builtins.def.in
+++ b/src/builtins.def.in
@@ -61,7 +61,7 @@ histcmd		-u fc
 breakcmd	-s break -s continue
 cdcmd		-u cd chdir
 commandcmd	-u command
-dotcmd		-s .
+dotcmd		-s . -s source
 echocmd		echo
 evalcmd		-ns eval
 execcmd		-s exec
-- 
2.51.0