Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BED171063D for ; Tue, 29 Apr 2014 03:23:21 +0000 (UTC) Received: (qmail 23313 invoked by uid 500); 29 Apr 2014 03:23:20 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 23160 invoked by uid 500); 29 Apr 2014 03:23:18 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 23103 invoked by uid 99); 29 Apr 2014 03:23:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 03:23:16 +0000 Date: Tue, 29 Apr 2014 03:23:16 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2742) History command incorrectly numbers commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983940#comment-13983940 ] ASF subversion and git services commented on ACCUMULO-2742: ----------------------------------------------------------- Commit 1f7dd2d53ffebb5bac629f61caffa70c50526730 in accumulo's branch refs/heads/master from [~mdrob@cloudera.com] [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=1f7dd2d ] ACCUMULO-2742 offset history command by one The history entries returned by the history command are 0-indexed, while the history expansion is 1-indexed. We need to offset the index when we print it so that users can accurately use event expansion. > History command incorrectly numbers commands > -------------------------------------------- > > Key: ACCUMULO-2742 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2742 > Project: Accumulo > Issue Type: Bug > Components: shell > Affects Versions: 1.6.0 > Reporter: Mike Drob > Assignee: Mike Drob > Fix For: 1.6.1, 1.7.0 > > > When you use the history command, it will provide you with a list of previous commands that have been executed, each with a command number. However, if you try to use history expansion by number to invoke one of those commands, you will be off by one. > I think this is because the history command in added to the list after it shows you the list, and pushes everything else up by one. Uncertain if this is something we do wrong, or if this is an upstream JLine bug. -- This message was sent by Atlassian JIRA (v6.2#6252)