bugGNU gettext - Bugs: bug #65882, envsubst: ${foo} but keep $foo

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65882: envsubst: ${foo} but keep $foo

Submitter:  Thomas Güttler <guettli>
Submitted:  Sat 15 Jun 2024 08:52:05 AM UTC
   
 
Category:  End-user / runtime Severity:  1 - Wish
Item Group:  None Status:  Not a Bug
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Sat 28 Sep 2024 12:21:07 AM UTC, comment #2: 

I got no reply in 3 months. => Closing.

Bruno Haible <haible>
Group administrator
Sat 15 Jun 2024 10:57:28 AM UTC, comment #1: 


> Example: "$foo ${bar}"
> In this case $foo should not be changed, only "bar" should get substituted.


What would be the purpose of doing so?

Bourne shell substitutes both syntaxes, therefore envsubst has to handle both syntaxes.

We attempt to not add complexity "just for fun"; it should have an actual purpose.

> This would make it better for situations where you have a lot of dollar signs.


I don't understand this.

Bruno Haible <haible>
Group administrator
Sat 15 Jun 2024 08:52:05 AM UTC, original submission:  

I would love to have that feature in envsubst:

With a new flag (we could call it --curly-only) envsubst should only exchange variables which use curly braces.

Example: "$foo ${bar}"

In this case $foo should not be changed, only "bar" should get substituted.

This would make it better for situations where you have a lot of dollar signs.

Thomas Güttler <guettli>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by guettli (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-28 haible StatusNeed Info Not a Bug
        Open/ClosedOpen Closed
    2024-06-15 haible Severity3 - Normal 1 - Wish
        StatusNone Need Info
        Assigned toNone haible

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code