a8m / a8m/envsubst

No output that meets expectations.

未关闭 适合新手
#70 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
907
派生
96
PR 合并指标
30 天内没有已合并 PR

描述

````
contenthub-1 on  dev is 📦 v0.14.1-dev.43 via ⬢ v22.15.0
➜ envsubst --version
envsubst (GNU gettext-runtime) 0.25
Copyright (C) 2003-2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Bruno Haible.

contenthub-1 on  dev is 📦 v0.14.1-dev.43 via ⬢ v22.15.0
➜ echo 'welcome ${USER:=312}' | envsubst
welcome ${USER:=312}
````

贡献指南

这个仓库没有索引到贡献指南

调研方向

The issue shows that envsubst is not expanding the default value syntax ${USER:=312}. Look at the Go source code for parsing and substitution logic, likely in the main package or a substitution function. Run the failing command from the issue to reproduce, then check how the tool handles default value assignments. Verify the fix by testing with the provided echo command.

由索引模型根据 Issue 内容生成。

评估

技术栈
go, shell
领域
cli, tooling
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。