From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 9F593221DD for ; Tue, 2 Apr 2024 09:13:38 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712042018; b=lA1F97+vGfqQI6xGZ2bqAe4SDeAPRQhmT3pydDkZfUT30XiCQGSrGw4QcvPMxXm2AuFCb58YG+ r6AX2kM4RBNU90IysCV72mCYsQj9hz01QDkz9E5fZJnEfRfXL3PusYO1qRceVNhD0hZGCX+zO3 tXnOGjp1FBjchbivFSUmEF+3aiOqBiLUS2Mx9c7H4NhbEFbDs1VrnNVwpxT9eoahY81XpFEfiv ss3yh9SVFpDbTZC7Q8c/sClghoqg/vBpxlJxSBuunlHVG5qeLanQcZ6kS4g4Q5nyqRoSRX/Umg SwAgzTwfGiuHV8Xl1R+dJ8gKHWCez6yKmlV8dE1L0X+kjQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f43.google.com) smtp.remote-ip=209.85.166.43; dkim=pass header.d=gmail.com header.s=20230601 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=1712042018; bh=aSgjLjvFsAD/PWNwjauxxAv2LqUJmqSLQZTdNCOmoQo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=r/wJWjHSZw5P4GQBK/643DcqasU1pZkqTlPTWWuMuagDqOtspfZIN0xM9UCOOwe+7QhGn7cUml ETP30wHrTP2Y/utD7u5ZidL94Il3DVGgUfgZwndZY2fMvfO6lK/Fa9RC7WAkcp60xVwDPnUO7F EdDZKx3sw60on5zByRh1MckRIcMkYbsnIj8IVlg6sdMmjGyRmP/IzS5VwBgbHNzBA8M2lVkI+a dl12GitGAvkKSLCOmCi+MPOJq8b9scYCX34Y06fHKXjmw4Qqs9fPjoMbjFvcmmufeR12oFw8WQ sR+Oh+luLWh4HmUDWiQT/7qSmlddA7DSUtOcJ2Y4uetY/w==; 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: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:In-Reply-To:References; bh=aSgjLjvFsAD/PWNwjauxxAv2LqUJmqSLQZTdNCOmoQo=; b=C9HMBehyzdpUY+VT8YNsA6K0vF NX3G2+X+KkjEtTrzjyj/buId4PI/L1ZkojPbXo6GJl/jh14A8u8C25i6uiPUI+RDv3RiZd7QBiDhA sXtN+fb8bgQm8bm7SA0vFgjq6KC6E6ITH8vun3gpNu5iGIXyi5lRtielRh4HeRmNnnDjla7Z9ezoJ n9F0MkzJkvDfQ7n9cKAyQc9LhF4gqYLIfnfEAAmP3QH4Z/FiNQQtmuQ/H9dqrMg8qXE+XQaAikrW9 nVjgXGY5bcXcY9GE8LERiOO5IRmOksiyqIPtgK4g50PBZCFHoUdiXDwLVzm7ReLEtMTuyxulRnEdS krhQjrZw==; Received: by zero.zsh.org with local id 1rrYKw-000LxH-4C; Tue, 02 Apr 2024 07:13:38 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f43.google.com) smtp.remote-ip=209.85.166.43; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f43.google.com ([209.85.166.43]:41380) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rrYK8-000LHQ-MP; Tue, 02 Apr 2024 07:12:49 +0000 Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-7cc0e831e11so26007639f.1 for ; Tue, 02 Apr 2024 00:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712041967; x=1712646767; darn=zsh.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=aSgjLjvFsAD/PWNwjauxxAv2LqUJmqSLQZTdNCOmoQo=; b=VTYssEa+UkLXF3YYgi5h3atzU9ykO3pTq/SsoD1XQ20mEASym9d/98Ys1Ai8BLimdA sE6GVG1SnJ7dzeIGunh/Xkf2rhHdQVBZsDN7jHSAEm2jfADvQ4e8bAA2Qb+Ez84ZcUt4 lH08VPCfKhPGMnhVZi1zm91vAb5AStBXTWgnleOEMHABqkg46F52vyqR1cjXdxG2Vm+7 YIJI0Zq7o4ePbzdKQn/CsubgWAwkC9CxAy2b4DG0kRDyDTpLoGiy+rPKZCASND360NcT wbKpXbNf/DgH4NJSBMMQZuuHZOK56XIfhf2kCESexo8vfHDcfCMLxGBE9R5aANOxxxDP kYCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712041967; x=1712646767; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aSgjLjvFsAD/PWNwjauxxAv2LqUJmqSLQZTdNCOmoQo=; b=M6+ldFsfDKKAEXvzWau8Je/7dTV3stNQODXcoVC1LK4OJLpspulHsUCFKf9+28buzu m2vZRjUldUGKbtNLnAM/+dZIF8JP22eiupVIQI+a10Ts4iCzQDYDslr62mEcjGab/Hly X3i+4X+Sc/28dv+MOAFUGvXghpyqJO7p8Xry0aFhBxl5cro2Swt/SL0kbbPrJiiOlTIA 8TawuDnjeODE0LMnjB4wP3GlTsM8ciSDpJknIMrN8mLsCMQc2YUU9SL/eFIKx0xrmNIH OjZecmf9ZODD06GakKvwBMy3PwWJL8blDQ0Xa7yC9Jh35B4lkQWIwSnG/V9WMpEcvgHf Uq8A== X-Gm-Message-State: AOJu0YywVONOro1a5oG46TJy/qKLenNRDs+Au52jp9LtegqctcSzU7Zf A1ViszDvAOhqbpPj/zQB6U5nR9VHlrCwDnDRs2+XRUH4s/cbjeBn0v3E9wuF1+kKKL7uxJI1wxH 3OaDJ8cu0gq6j9JW/KRxSRsIDr6r8893xDqo= X-Google-Smtp-Source: AGHT+IHbylirsh5gOQDBMFl4hN0zXaGzrU5Kr3b6G8Ylymdk7/Xarb/dNPt4uQ4GhlOC9SQadnx14nVNOzNCV7DDCu0= X-Received: by 2002:a92:cf42:0:b0:368:a917:168f with SMTP id c2-20020a92cf42000000b00368a917168fmr10756722ilr.3.1712041966961; Tue, 02 Apr 2024 00:12:46 -0700 (PDT) MIME-Version: 1.0 From: Marlon Richert Date: Tue, 2 Apr 2024 10:12:11 +0300 Message-ID: Subject: [bug?] How to make _expand behave like the expand-word or list-expand widgets? To: Zsh Users Content-Type: multipart/alternative; boundary="000000000000481109061517d5ee" X-Seq: 29759 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: --000000000000481109061517d5ee Content-Type: text/plain; charset="UTF-8" I would expect _expand to behave by default like expand-word or list-expand, but it doesn't. For example, given default shell options, if `foo=*`, then expand-word and list-expand will complete `$foo` to `*` and `$~foo` to the files matched by `*` as a glob expression. However, no matter what zstyle options I set, _expand will either complete both of these to `\*` or both of these to the files globbed by `*`. By default, I would expect _expand to complete expressions in the same way as the shell substitutes them when evaluating the command line. Is there a combination of zstyles that makes _expand complete `$foo` to its literal value and `$~foo` to the files globbed by its value? If not, then I would like to see this being added somehow and preferably be made the default behavior. --000000000000481109061517d5ee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I would expect _= expand to behave by default like expand-word or list-expand, but it doesn't.

For exampl= e, given default shell options, if `foo=3D*= `, then expand-word and list-expand will = complete `$foo`=C2=A0to `*` and `$~foo`= to the files matched by `*` as a glob exp= ression.

However,=C2=A0no matter what zstyle options I set,=C2=A0_expand will either complete both of these to= =C2=A0`\*` or both of these to the files globbed by `*`.=C2=A0
=
By default, I would expect _ex= pand to complete=C2=A0expressions i= n the same way as the shell substitutes them when evaluating the command li= ne.=C2=A0

Is there a combination of zstyles that m= akes _expand complete `$foo` to its literal value and `$~foo` to the files = globbed by its value?
<= font face=3D"arial, sans-serif">
If not, then I would like to= see this being added somehow and preferably be made the=C2=A0default behav= ior.

--000000000000481109061517d5ee--