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

Appy commented on HBASE-19770:
------------------------------

Was trying the example in HBASE-20151 and realized that our users may be 
relying on return values more than we thought. Things worked when i started 
shell with -r.

Just noting it....and that it'd been best if there was some way to tell jruby 
shell to simply ignore the returned value if there was no assignment.

> Add '--return-values' option to Shell to print return values of commands in 
> interactive mode
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-19770
>                 URL: https://issues.apache.org/jira/browse/HBASE-19770
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Romil Choksi
>            Assignee: Josh Elser
>            Priority: Critical
>             Fix For: 1.5.0, 2.0.0-beta-2, 1.4.2
>
>         Attachments: HBASE-19770.000.branch-2.addendum.patch, 
> HBASE-19770.001.branch-2.patch, HBASE-19770.002.branch-2.patch, 
> HBASE-19770.003.branch-2.patch, HBASE-19770.004.branch-2.patch, 
> HBASE-19770.ADDENDUM.branch-2.patch
>
>
> Another good find by our Romil.
> {code}
> hbase(main):001:0> list
> TABLE
> a
> 1 row(s)
> Took 0.8385 seconds
> hbase(main):002:0> tables=list
> TABLE
> a
> 1 row(s)
> Took 0.0267 seconds
> hbase(main):003:0> puts tables
> hbase(main):004:0> p tables
> nil
> {code}
> The {{list}} command should be returning {{\['a'\]}} but is not.
> The command class itself appears to be doing the right thing -- maybe the 
> retval is getting lost somewhere else?
> FYI [~stack].



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

Reply via email to