From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7543 invoked by alias); 15 Jan 2016 19:34:30 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21154 Received: (qmail 3920 invoked from network); 15 Jan 2016 19:34:30 -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=tFKI8IJhKnDA23kJDJBc5ENU9I9VG6gOCuGkAOoy54Q=; b=TBT2VL3NgJcMcSWsjsVB7W/qGT5UjmY5qpm/3pzdVYtGNdVVP1K5ly+A0YTJOTAH+k NDs4Ctn6E+Vt5yQGzCvhrubBEECeVMDrKT+ZtCb1WuYGJRAXN7ZQYPuphlgpfCeGL7FW GbI/i3fpcv/6ED+md9FBoXrnmquV9O6HpCfGLVlgOrJbsnVQw+yfyKop3Z12AWezsc6Z hxeNOQz3Qm/lPrNvq9uEl4ZJOaMxwfyHzH1lT1cfTO6/sYstnqJbjjizRLWwzNz/aSeK xXU75rPGs7vu+5XNzps14Hc4rVP8iH9ECQ6VViB5GhruH2tp7S4RulC8VmypZlgU3iuU +RhQ== 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=tFKI8IJhKnDA23kJDJBc5ENU9I9VG6gOCuGkAOoy54Q=; b=XhUAHJpnUM2sJVVa6gtMArhoudVDhtqG5St7Qi8fN7T4xd3sY3GCTQFd7uhYKGAej3 3lxSKgnmJ7fF2qAErCXbch8glrsDPE3AWJ5k8OCx9HQ4E7QF1vTQ/l5KQEg286bFg6g4 RAFqPO8b/xYh5vACwZQavzme0WxKL68VTBR4XIGm8j46E7aQTOx8Ib2E4ox10AcSS3OI JZNpA70G06Na9BRD++GDUZdUTRBlL9j++8BkZRf/LdeZRuMBObEv11nIYH7DVNKj10Y8 kYKGxUivWsq9dCLAxFxeRMxmAV6C582AhtqBay5OcErFytnE95tFJRuWpjlffGyb3Lh5 nM2Q== X-Gm-Message-State: ALoCoQk7K8XiNHO+vu6CClNstRKsCnJkibqXe/Ds5UtgySaoTdXUnWF3WY2yZsjdHCYuL11H9ZyNdAUrkA81YinXlPasfM6ZFA== X-Received: by 10.66.235.202 with SMTP id uo10mr17456388pac.63.1452886468979; Fri, 15 Jan 2016 11:34:28 -0800 (PST) From: Bart Schaefer Message-Id: <160115113449.ZM2625@torch.brasslantern.com> Date: Fri, 15 Jan 2016 11:34:49 -0800 In-Reply-To: <20160115112915.GA31148@linux.vnet.ibm.com> Comments: In reply to Dominik Vogt "Re: cd "" foo bug?" (Jan 15, 12:29pm) References: <20160111112026.GA14816@linux.vnet.ibm.com> <20160111115804.00a8661b@pwslap01u.europe.root.pri> <20160115094526.GA11215@linux.vnet.ibm.com> <20160115104114.17aedcaf@pwslap01u.europe.root.pri> <20160115112915.GA31148@linux.vnet.ibm.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: vogt@linux.vnet.ibm.com, zsh-users@zsh.org Subject: Re: cd "" foo bug? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 15, 12:29pm, Dominik Vogt wrote: } } Any chance to at fix "--" so that } } cd -- -1 } cd -- +1 } cd -- -q } } actually work? That last one DOES work. The -- option will prevent anything that looks like an option from being interpreted as an option. The only special case is with digits after the +/-. Changing that is messy because of the way bin_cd() is structured -- a new flag would have to be passed to cd_get_dest() to tell it not to use the directory stack, among other things.