palaniyappanBala / klish

Automatically exported from code.google.com/p/klish
Other
0 stars 0 forks source link

Dynamic variable name start with two underscore #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<VAR name="_HOSTNAME" help="host name" dynamic="true">
<ACTION>
        echo -n $(hostname)
</ACTION>
</VAR>

Syntax above works fine for the newest release (1.5.3) and older release
----------------------------------------------------------------------
Syntax below doesn't work with the newest release (1.5.3) but works fine with 
previous release

<VAR name="__HOSTNAME" help="host name" dynamic="true">
<ACTION>
        echo -n $(hostname)
</ACTION>
</VAR>

Original issue reported on code.google.com by daj...@gmail.com on 27 Jan 2012 at 10:46

GoogleCodeExporter commented 8 years ago
You are right.
The two underscore syntax is reserved for internal klish variables and has 
special meaning. 
Don't use it for user-defined variables.

Original comment by serj.kalichev@gmail.com on 28 Jan 2012 at 12:11