Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3036135ybl; Mon, 20 Jan 2020 14:33:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzk/Ox/EUW4Yazm6w/nDNQHG7xklx/JhkSIKvd26En2gxvY9QRbLhrRWudQEfK2sbOusCw/ X-Received: by 2002:a9d:32f:: with SMTP id 44mr1293087otv.234.1579559582379; Mon, 20 Jan 2020 14:33:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579559582; cv=none; d=google.com; s=arc-20160816; b=WWcYSaZyzn5q5h4pmAA8Ib7OQDWySYk8bONzs2slxPeqYPL4Y8Cy2habNJg2ztP/hY PhV8X6O9mp4oTHwtC1a1721uBncHDpN80Q6z2KQKoEnJbkhyyaq68MrkrEKEZa6DWq3w CMZLOYwO326ZgjKU2NsKLEKJ9AeTt2ZhxyCiklYhAVEsykIpf2ZBQbcmEUtvRbQt54x3 rxMZ66XLoOybm/FwlF9WVzBBKj8NHIQQcii3BeFpFq8UQlEG30VRLJATtOpLdAHvR2jL QlM2J5kU7cTfDO0h4M4kXCQtuO2vDA3Rq6n6lq7jH/TaKe2T9lpdhO/suy3DVz32SPnE PD/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:date:from :dkim-signature; bh=Qen2oaV6NSJ+DPu/aA+AjsLPX6S4e0YSD1L4RkCs10o=; b=YhTbQ5ko9cfe34RtmFhFAQ1jESswkWplHCrsDvWXaLkcaTOckcJD5sEw2nEI7Z+ab5 d+S4PQqO7R0ipHO/9wTvqZgntazScwz4gZe+YfNun5VZLMiRza+vtnj4J2h3fvR06/EX AVdxfd0lkg1V5TuvHz8a7BHxos8GHHM8StkRI9X+L3Qjb7Fg0elkWlosmJCsNDxP+zFi M+LsNDe4yXOisL2bOrOK9kF9U/taQ598mpIMFWoxCovALM/YbGgn/LCO4aVtobReDJm0 7ZW8+pKvFxpsLvK0051xnWLPAQTuYHSxn1IrHqGktZOiY1L2/GsWNrqv4m/KNkHGhFQ9 Ocrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="m70WP5/0"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si18702475oiy.97.2020.01.20.14.32.36; Mon, 20 Jan 2020 14:33:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="m70WP5/0"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbgATWcd (ORCPT + 99 others); Mon, 20 Jan 2020 17:32:33 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34222 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbgATWcd (ORCPT ); Mon, 20 Jan 2020 17:32:33 -0500 Received: by mail-lj1-f195.google.com with SMTP id z22so717569ljg.1 for ; Mon, 20 Jan 2020 14:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Qen2oaV6NSJ+DPu/aA+AjsLPX6S4e0YSD1L4RkCs10o=; b=m70WP5/0NaV+TgztVsKDzvPM/e0cAhyjeYS44CPXSBGF4Gbl9bsapo5v6iPZX5akPj EOjgplzLJe/yeq3xOz4IBYDo5D4V9ZnLDN/8c8+LXDZh8O/SQMIxIZA0Py24m7V35oDv wy7y/+qaYhvQhCWa1/ED2LuhLGb3YqIimT/3TmbF0mILh8w8HQUDGtxbKGDrTsRa1NYy Wm7RI/N2V6HyTUfJCitVDKVxdbCTIaQuy6fnoNcfgkgyuzEnhWjaOdqZs0uDW3zfmFdX Np9IcQ9aoHy0ds3+yxNHexkZC1bVYbc/YCkFxWlxGpKN5hLGf70JRx1E8PtzMDU82YA7 ZBLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Qen2oaV6NSJ+DPu/aA+AjsLPX6S4e0YSD1L4RkCs10o=; b=ptm8qCAkGyo9ble6mIet9IMGnAZLblSvz+IyxpIkbpMnbiA7uMHkcP0HbKsbugRrde rNgsxtonY/i5f0KOKHr8M/FNbh2rhfL1pVkRFyG58HWK62pnWAjVycTM7/Uh82r3fRsi AELXAkdKvjvdMeZNMnC3k8VWbVoWGrzGPuFPhjAqgmEkP0/7k8uMWBwV43SGab4Dw2C3 K3QCE0EpP+GPn1sqPUHautO6nrPCZSRuKJsZD0p0FKaEVmjg6K82JFr0Uz0aJ+IF8u7u J4uF2znn1E0HNz2a1xb9e4XZJca4x2Zil0oa3uKy7jcsCM7nAmlcOkhhBs0v2hmvDFJ/ IiNg== X-Gm-Message-State: APjAAAVljp+PeCV14Hi1lroiDt0VRDaphtBsTEEkMU8zh2mr+8WmgHWn M2OPOz02D8BOsQl+0cLgtQYupw== X-Received: by 2002:a2e:9687:: with SMTP id q7mr14261049lji.232.1579559551254; Mon, 20 Jan 2020 14:32:31 -0800 (PST) Received: from kynes ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id x29sm20466848lfg.45.2020.01.20.14.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 14:32:30 -0800 (PST) From: "=?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek" X-Google-Original-From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek Date: Mon, 20 Jan 2020 23:32:28 +0100 To: Marijn Suijten Cc: linux-bluetooth@vger.kernel.org, luiz.von.dentz@intel.com Subject: Re: [BlueZ PATCH] shared: shell: Only omit consecutive duplicate history lines. Message-ID: <20200120223228.onfe3orcusf3vhsb@kynes> Mail-Followup-To: Marijn Suijten , linux-bluetooth@vger.kernel.org, luiz.von.dentz@intel.com References: <20200118204423.494209-1-marijns95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200118204423.494209-1-marijns95@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 01/18, Marijn Suijten wrote: > Change rl_handler to append duplicate history, as long as it isn't > identical to the last line. It prevents consecutive duplicates while > still having an accurate overview of the most recent commands used, > mimicking most modern shells. > > This addresses my only major gripe with bluetoothctl: pressing UP does > not retrieve the last typed command when it is a duplicate of something > else written (much) earlier in the history. It is especially noticeable > when needing the same command repeatedly. Works like a charm, thank you! I was wondering why btshell utils are so weird and never thought it was that obvious... -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND