bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64666] envsubst: passing variables in SHELL-FORMAT without dollar


From: Bruno Haible
Subject: [bug #64666] envsubst: passing variables in SHELL-FORMAT without dollar
Date: Thu, 14 Sep 2023 10:42:46 -0400 (EDT)

Update of bug #64666 (project gettext):

                  Status:                    None => Not a Bug              
             Assigned to:                    None => haible                 
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:


> 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.

That's OK. It's not hard to prefix each word in a word list with a dollar. You
can do that, for example, in a shell function that invokes 'envsubst'.

> 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.

People who don't know that they need to escape dollar characters in shell
should not be doing shell programming. Sorry, but this argument "it would
avoid beginner mistakes from people who can't do shell programming" does not
count as valid.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64666>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]