[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] bash way of variable substitution
From: |
Pierre Gaston |
Subject: |
Re: [Help-bash] bash way of variable substitution |
Date: |
Thu, 8 Feb 2018 16:55:55 +0200 |
On Wed, Feb 7, 2018 at 11:15 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
> I'd like to do variable substitution using the bash syntax (only allow
> things like ${x} or $x without allowing anything else in bash) instead
> of using other tools like m4. In order to not to have a conflict with
> environmental variables, I did not use bash for this implementation.
> Instead, I come up with the following implement in python. But I am
> not how variable substitution is implemented internally in bash and
> whether there are any other better and cleverer implementations.
>
> Does anybody have any other suggestions about a better implementation?
>
>
check http://mywiki.wooledge.org/TemplateFiles
Re: [Help-bash] bash way of variable substitution,
Pierre Gaston <=