Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
- X-seq: zsh-workers 37630
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
- Date: Thu, 14 Jan 2016 19:04:24 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=B9DwSCeblmIyMGsMbtmHDYS+yUzE/cxxrynziVdrzjs=; b=j4lYywYrvPNpYX6Y/14G/oEL6NeWRJpVJgUbV7gOwwa67Yks6mhD/EgXLgYJD/steR bUja5BB9qCPa7RyDBIjsgBKe1NyQDPIIApYZ1HNTgeTAReZ1toJWApVO8RVv9a9Za34a PC0hTHj+A9axnhHGpCLq0QP+Y3dveW83Qz7gzTm62b358FJREX05mczx3Hx9pDJGNTAe IsTloDqPr5pyzmsVUfWXTpQANmBDEQGAFndVuXjHh7lno0IbDS1GEuFgsreAVY8G4JCA E8R1NgbNIPyUot60Tid2YsQTbjv2H0lCIpcQUkLJji5im/iVy9bMGNJU+a649YDGjpYf OYuw==
- In-reply-to: <CAKc7PVBMqngEu2KvyWvPVGYw7_zZ6DadpT+KV6msw9Mm8tkHCw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBMqngEu2KvyWvPVGYw7_zZ6DadpT+KV6msw9Mm8tkHCw@mail.gmail.com>
On Jan 14, 10:19am, Sebastian Gniazdowski wrote:
} Subject: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
}
} in both cases words array is empty, so CURRENT=0 seems to be more
} logical value. Maybe something bigger is hidden behind this.
CURRENT=1 indicates the completion is in command position, even if there
is no command present yet. The command name is always the "first word"
even if that is so far an empty word.
CURRENT=0 only makes sense in contexts where there is no command position
at all.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author