From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4968 invoked by alias); 15 Jan 2016 03:04:05 -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: 37630 Received: (qmail 1603 invoked from network); 15 Jan 2016 03:04:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=B9DwSCeblmIyMGsMbtmHDYS+yUzE/cxxrynziVdrzjs=; b=h/mJ8s78g/ryLgMAtbxASlQT3957AGk6pM8DPapYAU8JHTet6pFtqLmSG1+fz9UM54 OpczaI2vjfc5NaNf29+3yUQri0VHHBK+2L/tA2v02AHhgECplqUmBnZqF252va4vBrh3 xGVvQzgOT3Jr+8wuvtUX1IQIPbqbwFRq7K0pIH69HPuiuuCfkskJ9U8Ws43Gtke16niL t44Sa/Ny5+VI2OvF9wL1DC0e27uAmwrPUfsm/q0c1+kk45zmm9EGymRCfqvcOviGD6Ro djZmpyUKYKOcQubJlRDoWe+hgOnQ8yxSlSekCFtBaskKMoXEWGDbJNCwUwOlw6j1yDf0 mE6A== X-Gm-Message-State: ALoCoQmKW+GZ4hR0wLr/r0k7FBQxjgID3jgB6ufKyIHkY4vPR+5ApKn+3bOdnMjr6+b2AhhKabkgaMV2FDQ2ZzbdDFISA+RdTg== X-Received: by 10.66.253.198 with SMTP id ac6mr11475796pad.37.1452827044031; Thu, 14 Jan 2016 19:04:04 -0800 (PST) From: Bart Schaefer Message-Id: <160114190424.ZM18329@torch.brasslantern.com> Date: Thu, 14 Jan 2016 19:04:24 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "$( has CURRENT=1, $(( has CURRENT=0" (Jan 14, 10:19am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: $( has CURRENT=1, $(( has CURRENT=0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 14, 10:19am, Sebastian Gniazdowski wrote: } Subject: $( has CURRENT=1, $(( 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.