Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D0CA68D7 for ; Thu, 9 Jun 2011 22:14:22 +0000 (UTC) Received: (qmail 74734 invoked by uid 500); 9 Jun 2011 22:14:22 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 74694 invoked by uid 500); 9 Jun 2011 22:14:22 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 74606 invoked by uid 99); 9 Jun 2011 22:14:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 22:14:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 22:14:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0C97510B418 for ; Thu, 9 Jun 2011 22:13:59 +0000 (UTC) Date: Thu, 9 Jun 2011 22:13:59 +0000 (UTC) From: "Benoit Sigoure (JIRA)" To: issues@hbase.apache.org Message-ID: <341060383.8824.1307657639048.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <285419879.8817.1307657519011.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Sigoure updated HBASE-3973: ---------------------------------- Attachment: hbase-hirb-formatter.patch Patch to fix the issue. > HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY > ---------------------------------------------------------------------- > > Key: HBASE-3973 > URL: https://issues.apache.org/jira/browse/HBASE-3973 > Project: HBase > Issue Type: Improvement > Components: shell > Reporter: Benoit Sigoure > Assignee: Benoit Sigoure > Priority: Minor > Attachments: hbase-hirb-formatter.patch > > > In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide. The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command). > When stdout isn't a TTY, the shell shouldn't try to wrap things around. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira