[ 
https://issues.apache.org/jira/browse/GEODE-5531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Derek Williams updated GEODE-5531:
----------------------------------
    Description: 
Variables are [documented 
here|http://geode.apache.org/docs/guide/16/tools_modules/gfsh/useful_gfsh_shell_variables.html]
 to work with gfsh echo, but do not. This applies to both pre-defined shell 
variables and user-defined variables (set variable...).

For example,
{code}
echo --string=$*
{code}
will show all shell variables and values, but 
{code}
echo --string=${SYS_USER}
{code}
simply displays ${SYS_USER}

Indeed, 
[EchoCommand.java|https://github.com/apache/geode/blob/78dcf4b8fa86543e882365e78f1c8e2a623bffde/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/EchoCommand.java]
 has a special case for `$*`, but does not include the other documented cases.

  was:
Variables are [documented 
here|http://geode.apache.org/docs/guide/16/tools_modules/gfsh/useful_gfsh_shell_variables.html]
 to work with gfsh echo, but do not. This applies to both pre-defined shell 
variables and user-defined variables (set variable...).

For example,
{code}
echo --string=$*` 
{code}
will show all shell variables and values, but 
{code}
echo --string=${SYS_USER}
{code}
simply displays ${SYS_USER}

Indeed, 
[EchoCommand.java|https://github.com/apache/geode/blob/78dcf4b8fa86543e882365e78f1c8e2a623bffde/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/EchoCommand.java]
 has a special case for `$*`, but does not include the other documented cases.


> gfsh echo variable does not work as documented
> ----------------------------------------------
>
>                 Key: GEODE-5531
>                 URL: https://issues.apache.org/jira/browse/GEODE-5531
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Derek Williams
>            Priority: Major
>             Fix For: 1.6.0
>
>
> Variables are [documented 
> here|http://geode.apache.org/docs/guide/16/tools_modules/gfsh/useful_gfsh_shell_variables.html]
>  to work with gfsh echo, but do not. This applies to both pre-defined shell 
> variables and user-defined variables (set variable...).
> For example,
> {code}
> echo --string=$*
> {code}
> will show all shell variables and values, but 
> {code}
> echo --string=${SYS_USER}
> {code}
> simply displays ${SYS_USER}
> Indeed, 
> [EchoCommand.java|https://github.com/apache/geode/blob/78dcf4b8fa86543e882365e78f1c8e2a623bffde/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/EchoCommand.java]
>  has a special case for `$*`, but does not include the other documented cases.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to