From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23462 invoked from network); 16 Aug 2021 21:41:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Aug 2021 21:41:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1629150070; b=WiRL5EFHEOpXUd4ERmgyHY3OX4zbQBhanFsFHbU9IpQ9mdtM0r6YDfnUeDpfbVCNLC2BzlLTnr fPPfsPhYk7ZhxrmKvGy08fUaEbm8YloWqonY2B3KU3pCIBzzb9XmDpz0h6LEd/Gkk11ME8khz2 ApCD8gQ5+Ip6X0wvcdxh9xeBDi96Vn80FMIUMviCCqbQxVYAsJMYLEm4GrPFmmDHDwrqKAQmf/ mRGccQDEQcnSoGsq8kC39BeCgOoDPCJgB+P5rTSTLTgrkaxx8maOKvUN2I4PX9z7BSnPyxcWfj OLLq9y0jhSAWbu0ed0PJPYbvZgkY1gIAowo6fTLxEgDg7Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f54.google.com) smtp.remote-ip=209.85.218.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1629150070; bh=VGvNQ82pDJMTpUCHXolXFKBSRIKyqai3cMXWt5sIG30=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=NpfzaA+u5mq5Z0+Zs2MVDw2CRvyMk62qnNCW1P5wL9CVKGaEyww8quFd03idB5+4cuZjYMwefE QyP9cQ1c6PXovNFS2xTH5NbnUIBntG9zXThodfcdcmR9knjdkmxmt4kepFc0/JToaeH7DT++pf VNpNCO8of9hbqtw/fEOwg29pVHGLiE/OBkAwhtFBqjKw7MzKVFexp7FAnzO4392l+6yZjsSFLc 2isCT+GgnLnNGIbZueHPI84lEjeGyRVDRnPIIg0xah1teV+GRk2yKCUvjiXY/SZ1W4NuM5lLaY PJ/p3Dc7khWYP2y83POvOlCOUNOTo/wx+91DZguwu4IAzw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=UPrkFOxB8NKAz5+bo9ZeiTp45HmpoN6Oyi6I/v+BiVo=; b=kZZnF++CZBzwp1qUOiTBzEQCXj fKXI+W3Ev4dFLRFuk5vuVPZebji5Ce9uvoXHBT6OM84mAEXHSZZZVDifJKRSO/+oNMcxUxLm6mEPf FlqKC97YF+T9WytZPxsRCEIkEvHzNMgAOxvZoO7/wQwUh/bw8bO+FR3Kc1v4W07A+HLR0DjNSFwRo 5unVjlBIJ3t5bsSfh2kXF40nTqOxEHKh0xlJTQK/fe+7UvGMdJbUNyLULA1zJ0+7xg5JNS62/L96C 9cQ8pvxv6BXbxeUAU0n/d8jw41EkjdBXW1nLbmXLcV4OYiY+9E6SFeMUKkxsOaI1EjsiKFmbl42nQ 0CjLldIQ==; Received: from authenticated user by zero.zsh.org with local id 1mFkM0-000CTJ-Az; Mon, 16 Aug 2021 21:41:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f54.google.com) smtp.remote-ip=209.85.218.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f54.google.com ([209.85.218.54]:46824) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mFkKy-000BkW-Fu; Mon, 16 Aug 2021 21:40:04 +0000 Received: by mail-ej1-f54.google.com with SMTP id gt38so13239571ejc.13 for ; Mon, 16 Aug 2021 14:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UPrkFOxB8NKAz5+bo9ZeiTp45HmpoN6Oyi6I/v+BiVo=; b=EQ/kDewIOKvTkWmLQDjJqU2OJs26dbiE3j9NUGS569r8eElbqEHgns2aOz7qyNFDEj yKazBeumXG+SxTbQINF5UGWmobi49m2J1ZfCU2dHkhGY8O59ZNTnSmJM6rgHHjZ8T52k H+PEbwn0VCnJcSs0Wzi9s4iSYuN7YjMp3iCcl9QtloSWuOHhVxj4j7E3qEnqjYm4dgK8 R8xnK8SwHEDhEQVkhb3fXlYNKSBCHLZY4CMRUB8D1YHDA+glVuMioe2WDQRaMlyVrnz6 YpNKpgtR3HUmcsAWiq+QaEzFpAlD+L8kNCfwwm17HaERtOdpQ/jCRFhJvxr/VpxLMM/M BtPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UPrkFOxB8NKAz5+bo9ZeiTp45HmpoN6Oyi6I/v+BiVo=; b=E+ttdQnCErJqXcmuh04ZbYuYZJwyTqCJVU1DVP+YYHdzsTDEvq2Hu4auuIPwW0oTw4 n4s+3yoKU777hZ4hupT0HFl1qOE6cmKqr2lDvRC2zj5prcKByzb9FRJcwBWxG7qMhgMi xnywdYtu6if1ZwApzlmpKrflUCFuX2iy69uSfgwPjSU9wxyqyo6wkvkPTav44XiqZTVH f7PmBspYtXkgDAkaVKg2o6OmY3ZiqrZW49s0ekKlU2e5oGm2qJog+mTi6qW0+xgn4Yy3 tJdgtxX/zI0yMuIhYVWHZdIotJ0jxOOm9N5CvN+Wy2ZbbMt0MFmJ8fdBkVqK+vhWlUjW bpow== X-Gm-Message-State: AOAM533spEV0L60FDd2Fec5IgtFXaqJniW0UXT+P1tfHYrSeiiPq1QbH vA2L0O4aSbVz8y8YwpVbzam1bG8UuUoVK/jiWQQnw6DaiaQ= X-Google-Smtp-Source: ABdhPJweHQKgVCJXGt4QsBy5Z1M/JcqNelxl2DX+QiGcZO47pzeWS96mtCpCdXU1WshfFqHx1M8qIwzTDBbOZqsMIMY= X-Received: by 2002:a17:907:9853:: with SMTP id jj19mr188282ejc.69.1629150003917; Mon, 16 Aug 2021 14:40:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?UGV0ZXIgU2zDrcW+aWs=?= Date: Mon, 16 Aug 2021 23:39:47 +0200 Message-ID: Subject: Re: completion does not insert a slash To: Zsh Users Content-Type: multipart/alternative; boundary="00000000000044f88d05c9b40b2d" X-Seq: 26933 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --00000000000044f88d05c9b40b2d Content-Type: text/plain; charset="UTF-8" > > > Are there any subdirectories inside src/python/ ? The only case in > which I can get this to reproduce is when there's nothing more to > complete. > Yes, there are four subdirectories and a bunch of files. % ls src/python/ API CMakeFiles CMakeLists.txt XYZ Makefile.am Apps, etc. What strikes me is that the completion provides different results depending on whether the final slash is real or "transient" (hopefully I'm using correct terminology). # All the following provide the same result: % cd src/pyt % cd src/python % cd src/python/ # the final slash is transient -- directory after cdablevar -- -- local directory -- python/ But in this case, the result is different. % cd src/python/ # the final slash is real -- directory after cdablevar -- -- local directory -- API/ Apps/ CMakeFiles/ XYZ/ Maybe the behaviour is expected, but I would expect the transient slash to work exactly the same way a real slash does. After I've discovered the 'description' zstyle option, I'm observing how the completion works and find it even more confusing. For example, in my Ubuntu system, the standard 'watch' command is located in /usr/bin. The /bin dir is actually a symlink to the /usr/bin/dir. And I have an alias called 'which', which expands to itself and adds two extra arguments. % whence -a watch watch --interval=0.3 tail -50 /usr/bin/watch /bin/watch BUT, trying to complete it in a command position identifies it either as a named directory, or as a parameter. (?!) % wa -- external command -- -- executable file -- -- builtin command -- -- alias -- -- parameter -- -- named directory -- wait wallpapers/ wapps watchbm wall wapi watch watchgnupg % wat -- external command -- -- alias -- -- parameter -- watch watchbm watchgnup The ? log file is quite long (3961 lines); I'm not sure how to make sense of it. Best regards, Peter --00000000000044f88d05c9b40b2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Are there any subdirectories inside src/python/ ?=C2=A0 The only case in which I can get this to reproduce is when there's nothing more to
complete.

Yes, there are four subdirect= ories and a bunch of files.

% ls src/python/
API CMakeFiles CMakeLists.txt XYZ Makefile.am Apps, etc.
=

What strikes me is that the completion provides differe= nt results depending on whether the final slash is real or "transient&= quot; (hopefully I'm using correct terminology).

# Al= l the following provide the same result:
% cd src/pyt<Ctrl= +D>
% cd src/python<Ctrl+D>
% cd src/python/<C= trl+D>=C2=A0=C2=A0=C2=A0 # the final slash is transient
--= directory after cdablevar --
-- local directory --
python/
=

But in this case, the result is different.
% cd src/python/<Ctrl+D>=C2=A0=C2=A0=C2=A0 # the final slash is rea= l
-- directory after cdablevar --
-- local directory --
API/ =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Apps/ =C2=A0 =C2=A0 =C2=A0 =C2=A0CMakeFiles/=C2=A0= XYZ/

Maybe the behaviour is expected, but I would= expect the transient slash to work exactly the same way a real slash does.=

After I've discovered the 'description'= ; zstyle option, I'm observing how the completion works and find it eve= n more confusing.
For example, in my Ub= untu system, the standard 'watch' command is located in /usr/bin. T= he /bin dir is actually a symlink to the /usr/bin/dir. And I have an alias = called 'which', which expands to itself and adds two extra argument= s.

% whence -a watch =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0
watch --interval=3D0.3 tail -50
/usr/bin/watch/bin/watch

BUT, trying to complet= e it in a command position identifies it either as a named directory, or as= a parameter. (?!)

% wa<Ctrl+D> =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
-- external command --=
-- executable file --
-- builtin command --
-- alias --
-- par= ameter --
-- named directory --
wait =C2=A0 =C2=A0 =C2=A0 =C2=A0 wall= papers/ =C2=A0wapps =C2=A0 =C2=A0 =C2=A0 =C2=A0watchbm =C2=A0 =C2=A0 =C2=A0=
wall =C2=A0 =C2=A0 =C2=A0 =C2=A0 wapi =C2=A0 =C2=A0 =C2=A0 =C2=A0 watch= =C2=A0 =C2=A0 =C2=A0 =C2=A0watchgnupg

% wat<Ctrl+D>
-- external command --
-- alias --
-- parameter --<= br>watch =C2=A0 =C2=A0 =C2=A0 watchbm =C2=A0 =C2=A0 watchgnup

=
The <Ctrl+X>? log file is quite long (3961= lines); I'm not sure how to make sense of it.

Best regards,
Peter
--00000000000044f88d05c9b40b2d--