Derek Williams created GEODE-5531:
-------------------------------------

             Summary: 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
             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, `echo --string=$*` will show all shell variables and values, but 
`echo --string=${SYS_USER}` 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