You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (JIRA)" <ji...@apache.org> on 2018/08/08 15:06:00 UTC

[jira] [Comment Edited] (GEODE-5531) gfsh echo variable does not work as documented

    [ https://issues.apache.org/jira/browse/GEODE-5531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573327#comment-16573327 ] 

Juan José Ramos Cassella edited comment on GEODE-5531 at 8/8/18 3:05 PM:
-------------------------------------------------------------------------

This is only reproducible when {{gfsh}} is not running in {{headlessMode}}, the variables are correctly substituted otherwise ({{gfsh run --file}} and {{EchoCommandIntegrationTest}} work just fine).


was (Author: jujoramos):
This is only reproducible when {{gfsh}} is not running in {{HeadlessMode}}, the variables are correctly substituted otherwise ({{gfsh run --file}} and {{EchoCommandIntegrationTest}} work just fine).

> 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
>            Assignee: Juan José Ramos Cassella
>            Priority: Major
>
> 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)