From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 8EC8E3858D38 for ; Sat, 13 Apr 2024 06:39:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EC8E3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8EC8E3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712990372; cv=none; b=TnhbXeUOcBXttDdkxJOanphLBNgUp2v4xdVk0YtgGaCFQvLFbOV3IqeKKVUlTaMcdqyX4gVKg+kdzh3lgpN0rlmL35bC9Wgf0ySeKZIgE1Gt1yZZ9uigE2aGRketuMo3IaAUA9sHC/Z4ADy822YFe0XgXYzdsV4aj3xJQrOG3zA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712990372; c=relaxed/simple; bh=sCXZcWpECab5L24+nPqnnSCjWzbTKX4EfCZtXuV2aw0=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=dW2ZNHVOKx34z7LVZrPNCjl31CaiMKg4mEg4wPKjFZSMqmh5WMzntCyy4zPAqFpBzWFP21rEzkzhDaG9cCSYz2oo+RjDaMr84TtJ+/N+MqfpIXYpXN3MXgOvPR2YI61Lmm1Xxku4Ub/1Ga5Fq/UZBLnO2cgqrfmku83+d+mB9B8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvX2x-0008Bs-6k; Sat, 13 Apr 2024 02:39:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=B1alFpTBYlvQCleIrJyTE/dV1G++qhx4MyJh8dqN9Gc=; b=q1JfAeN6HQa3 CCiECFng3pQFTgu/uli42nG1Wckl9O9g+hledbPAVPiTqhL8wgE59nXh9fSOXALC3RCtK5LUaspUr IOJwVzQ/hlzO+aOQv8S+KscJszA51D18wwfF+7vJ8RrINSWoMCVemUPgIfKt+lv9SjKLry+ogdZjc PGQjWFDIVuqgnHbW/mVJbnadne4d20cgsMwahshgp+Zg+Yuj0QA9ZyYQyOCwKQP7UzFrOucIWrheQ 6QGW3jxMrSR2BbHrPAoGP5vpAwaLRKvYsgae2nQ814ocV7DdrnrSxDwUlVAT0N/DxC712btkT7XnN 3N4lmMJfSaFgDKSfrlXuBw==; Date: Sat, 13 Apr 2024 09:39:29 +0300 Message-Id: <86y19hrcke.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess Cc: lsix@lancelotsix.com, gdb-patches@sourceware.org In-Reply-To: <87il0m43m9.fsf@redhat.com> (message from Andrew Burgess on Fri, 12 Apr 2024 23:29:02 +0100) Subject: Re: [PATCH 4/6] gdb: add match formatter mechanism for 'complete' command output References: <6adc14efeac88ecd9501c0c8c53b622099333792.1711712401.git.aburgess@redhat.com> <20240330234918.fk4gdzmdeoojia27@octopus> <86ttknaqsx.fsf@gnu.org> <87pluu4gwb.fsf@redhat.com> <865xwms9ng.fsf@gnu.org> <87il0m43m9.fsf@redhat.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > From: Andrew Burgess > Cc: lsix@lancelotsix.com, gdb-patches@sourceware.org > Date: Fri, 12 Apr 2024 23:29:02 +0100 > > Eli Zaretskii writes: > > >> (gdb) file '/tmp/xx > >> => (gdb) file '/tmp/xx/' > >> (gdb) file '/tmp/xx/'abcd > >> => ?? What would this do? > >> > >> What if there really was a file /tmp/xx/'abcd ? What happens then? > > > > ENTER does the same as TAB, and then submits the result. So GDB will > > see '/tmp/xx/abcd' in that case. > > This all sounds great. Do you know of any other readline based projects > that do completion like this? No, not off the top of my head. Ironically, the Windows shell cmd.exe does behave like that. > Maybe then you know that readline can be made to do things differently > (hence me asking for examples). Or maybe you're suggesting we should > forget readline and do things as you suggest ... I'm just trying to > figure out what you ideal end result is here. If Readline doesn't want to go this way, I think in the long run GDB should develop its own completion machinery. But I'm okay with leaving that alone for now.