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

Josh Elser commented on HBASE-19770:
------------------------------------

bq. looks like the gist was to make the behavior of shell commands more 
consistent. Some commands printed output and returned results (some printed the 
results too as duplicate, some didn't), some commands didn't return any result 
but just printed something, etc.

Yup, totally understand why the change was made. I think, for normal users, 
this is fine. That's why I've introduced this flag (default: false) to let 
those of us who *know* what we're doing to keep doing things how we've been 
doing them.

bq.  That said, if there's a suggestion to improve shell experience in a way 
more than - print lists for some selected commands, all up for it.

It would be nice if we could just control this at the IRB level, but I haven't 
looked to see if it's possible to suppress the shell printing the values.

> `list` shell command does not return an array of table names
> ------------------------------------------------------------
>
>                 Key: HBASE-19770
>                 URL: https://issues.apache.org/jira/browse/HBASE-19770
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Romil Choksi
>            Assignee: Josh Elser
>            Priority: Critical
>             Fix For: 2.0.0-beta-2
>
>         Attachments: HBASE-19770.001.branch-2.patch, 
> HBASE-19770.002.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