From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43751-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id dda76b5a for ; Fri, 2 Nov 2018 20:51:59 +0000 (UTC) Received: (qmail 1491 invoked by alias); 2 Nov 2018 20:51:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43751 Received: (qmail 1066 invoked by uid 1010); 2 Nov 2018 20:51:42 -0000 X-Qmail-Scanner-Diagnostics: from firebrick.maple.relay.mailchannels.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(23.83.214.59):SA:0(-2.0/5.0):. Processed in 3.810519 secs); 02 Nov 2018 20:51:42 -0000 X-Envelope-From: wayne@opencoder.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Sender-Id: dreamhost|x-authsender|dropbox@opencoder.net X-Sender-Id: dreamhost|x-authsender|dropbox@opencoder.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dropbox@opencoder.net X-MailChannels-Auth-Id: dreamhost X-Madly-Lettuce: 37175805386f912c_1541191181781_1583896157 X-MC-Loop-Signature: 1541191181781:866682258 X-MC-Ingress-Time: 1541191181780 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=opencoder.net; h= mime-version:from:date:message-id:subject:to:content-type; s= opencoder.net; bh=pTHx+WENIix0wlE1YMes98abGMc=; b=mSuNl68NmFbUlG DnIRvhSR6E5cxz0khpfI+/54w2LTv9lReDyW0sAcvleMVNo+rI0pRQr69aD1KcPd l9ArLAB/V5jPHHkJORdWWq16j+M8DRNg1hR/ecyZKOL+QrmvJW2LmwPh4znwlh2h DBYgUgKohGg14u+K46SHGAIeZ2/Ak= X-Gm-Message-State: AGRZ1gLCuJNUrBNeeGDyIrZ2jNtTASYpllRpI0DWx1EmbbeoUtqyQ6lh vat0Yiy17CLyBxNkbCraecyA3BgfFmh6VjQPK1k= X-Google-Smtp-Source: AJdET5d/npkLmzfhQm731s/eeqjdAK2WWNDyHMq6VrYqZKnYB5IpL4nCi87WGFI/ZaYsPi1jPt9o/2qoGd90h5duWCM= X-Received: by 2002:a54:4e0f:: with SMTP id a15-v6mr7783349oiy.346.1541191179697; Fri, 02 Nov 2018 13:39:39 -0700 (PDT) MIME-Version: 1.0 X-DH-BACKEND: pdx1-sub0-mail-a77 From: Wayne Davison Date: Fri, 2 Nov 2018 13:39:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Non-escaped special chars from var expansion To: Zsh list Content-Type: multipart/alternative; boundary="000000000000cc068c0579b488de" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrieelgdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegghfffkffuvfgtsegrtderredttdejnecuhfhrohhmpeghrgihnhgvucffrghvihhsohhnuceofigrhihnvgesohhpvghntghouggvrhdrnhgvtheqnecukfhppedvtdelrdekhedrudeijedrudektdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlqdhoihduqdhfudektddrghhoohhglhgvrdgtohhmpdhinhgvthepvddtledrkeehrdduieejrddukedtpdhrvghtuhhrnhdqphgrthhhpeghrgihnhgvucffrghvihhsohhnuceofigrhihnvgesohhpvghntghouggvrhdrnhgvtheqpdhmrghilhhfrhhomhepfigrhihnvgesohhpvghntghouggvrhdrnhgvthdpnhhrtghpthhtohepiihshhdqfihorhhkvghrshesiihshhdrohhrghenucevlhhushhtvghrufhiiigvpedt --000000000000cc068c0579b488de Content-Type: text/plain; charset="UTF-8" Hi, folks! Long time no see... I have a particular compinit setup where special-chars from a var (other than spaces) are not backslash-escaped. To duplicate: zsh -f autoload -Uz compinit compinit zstyle ':completion:*' completer _oldlist _expand _complete _match _ignored _files _prefix zstyle ':completion:*:expand:*' tag-order all-expansions bindkey -e bindkey '\t' complete-word mkdir 'foo; bar (baz)' cd !:1 cd $PWD The result is "cd foo;\ bar\ (baz)" instead of "cd foo\;\ bar\ \(baz\)". If the instead executes expand-or-complete rather than complete-word then it is expanded correctly, but I like to avoid var expansion in a path unless I'm expanding the var itself (e.g. I don't want "vim $OLDPWD/fname" to expand $OLDPWD since I'm not tabbing right next to the var). The bug has been around for ages, and is still in the current git source. I'm guessing that the _expand script needs a tweak, but I didn't see what might be wrong after a quick glance. ..wayne.. --000000000000cc068c0579b488de--