bug-gettext
[Top][All Lists]
Advanced

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

[bug #63948] envsubst: Support option -s for "strict"


From: Bruno Haible
Subject: [bug #63948] envsubst: Support option -s for "strict"
Date: Mon, 20 Mar 2023 11:37:41 -0400 (EDT)

Update of bug #63948 (project gettext):

                Category:        Programmer tools => End-user / runtime     
                  Status:                    None => Not a Bug              
             Assigned to:                    None => haible                 
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The wish is not useful for the purpose of envsubst.

envsubst is meant as an auxiliary program for implementing eval_gettext, so
that the user can replace, in a shell script

echo "Hello $name, I greet you"

with

eval_gettext "Hello \$name, I greet you"


If, at this point of execution in the shell script, the environment variable
'name' has no value, an empty value will be used in the shell code with
'echo'; therefore an empty value is also what needs to be used in the shell
code with 'eval_gettext' — and that's what envsubst does.

If a shell script wants to verify that a certain environment variable is set,
it can do so prior to the shown line. This kind of validation is orthogonal to
internationalization; I see no reason why it should be made a built-in feature
of the internationalization.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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