From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4945 invoked by alias); 1 Dec 2016 09:38:38 -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: X-Seq: 40058 Received: (qmail 27231 invoked from network); 1 Dec 2016 09:38:38 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f169.google.com 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(209.85.220.169):SA:0(-0.0/5.0):. Processed in 2.260644 secs); 01 Dec 2016 09:38:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.169 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=OBF7oL862w+eJsPzMyg0pYG0GBHnUuzP4ZJF0DNHMic=; b=doBSavE61WNlTJxvc+g9qYP6Qba0CfBZ0YSlHPgi1QvtioDwik1slPOq2frXnE9b9J oC8M5IXYWwuqDDDZdvSFuIaTBqWfemlvgqhBlURyeb0GFyQZesK/o+n8OvWx68pTzR6V AcmYMZGKW5UQQFtERZ64URu7MBs5dA2QP95JseRTmrG9i9FJu4gSePLfWURtGj6ikrBo /IhwDK1XScVag9Z2EuRUAMRAXrwgXnxt1TNmI/b6A2Bsq5TUC+/7fR2W2c3MzJ+MJwU+ fvzvDUH2ti3AZIngaAz/Wx2djJQD7ZLD2f7ATo+5X8XbTqPWuaBZEIUvpSU+8+PoitpD ayRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OBF7oL862w+eJsPzMyg0pYG0GBHnUuzP4ZJF0DNHMic=; b=THLqqBSKZqP0BnxzJX5w3mHG4VX3cYjZsKS3PQ4A6e8QUzcgbK/TynWEGO6Xxi8BVt c39k78bkflyDKWAw0DghGwoEGDNNBJc38jcbf2qnyIZqDJddvTmlMvtr2/FU1yYuGJIB FEU2+8PaJ9cOxqxv72o9uredBzR3qcn99JUH7ObAKbamu6Mn83yDgHG26CScEBua0WtU kj7a1JrIHHdhNuKdwE0O6HzRj7PuXxs3f9UMynMtFbbqIv4e604ON8NsOxwg4mMP2K8K G4oqkooF2hxMxfy+PlCw7ygjqeb5zGY6J1fP/Pmoru53oYZ8Eq/5yRQ9xSN9wOiwEFN1 sFZQ== X-Gm-Message-State: AKaTC00Y2auwTLO7bWUOwWPmwKpAKp5L75XZNPoZZeKmgKMh0PKIxBQ+lUwFOxlVgt3LSF3Da9rBJz4FxwcqNg== X-Received: by 10.55.20.164 with SMTP id 36mr31316491qku.86.1480585108197; Thu, 01 Dec 2016 01:38:28 -0800 (PST) MIME-Version: 1.0 From: Mikael Magnusson Date: Thu, 1 Dec 2016 10:38:27 +0100 Message-ID: Subject: fallout from 37689 and 39949, completing ~-/ broken when no OLDPWD To: zsh workers Content-Type: text/plain; charset=UTF-8 Prior to 37689 it worked fine (completing files in the current directory), after that commit it completed nothing, after 39949 it started instead printing _path_files:309: no such user or named directory: - for each run through the completion system (so 3 times in my setup, 1 by default). Doing % echo ~-/ /tmp still works fine and prints the current directory, doing % a='~-/'; echo $~a zsh: no such user or named directory: - exhibits the error, and that's exactly what the completer does on line 309 unsurprisingly: elif [[ "$linepath" = [-+] ]]; then realpath=${~:-\~$linepath}/ -- Mikael Magnusson