[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64666] envsubst: passing variables in SHELL-FORMAT without dollar
From: |
Karl Bartel |
Subject: |
[bug #64666] envsubst: passing variables in SHELL-FORMAT without dollar |
Date: |
Thu, 14 Sep 2023 08:34:58 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64666>
Summary: envsubst: passing variables in SHELL-FORMAT without
dollar
Group: GNU gettext
Submitter: karlb
Submitted: Thu 14 Sep 2023 12:34:56 PM UTC
Category: End-user / runtime
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 14 Sep 2023 12:34:56 PM UTC By: Karl Bartel <karlb>
When using envsubst with a restricted set of variables, the SHELL-FORMAT
parameter has to be given as a comma separated list of dollar prefixed
variables.
Allowing variable names without the dollar prefix would prevent the common
mistake of not escaping the dollar when calling envsubst from the shell
without introducing any ambiguity. It would also make typing and reading the
list slightly more pleasant.
Are there any reasons against allowing this? Would a corresponding patch get
accepted?
Just for context: This change (along with renaming SHELL-FORMAT and passing
variables as separate args) has been suggested in
https://ariadne.space/2021/04/15/a-tale-of-two-envsubst-implementations/
(section "Defining a restricted set of environment variables is bizzare").
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64666>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64666] envsubst: passing variables in SHELL-FORMAT without dollar,
Karl Bartel <=