From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27114 invoked by alias); 28 Apr 2015 18:42:20 -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: 34988 Received: (qmail 22803 invoked from network); 28 Apr 2015 18:42:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Message-ID: <553FD348.6000606@gmx.com> Date: Tue, 28 Apr 2015 14:36:56 -0400 From: Eric Cook User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: AUTO_CD and directory names of options Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:wi708hMHipzkzH+80fIg2ZK/2Y+z0C6co9SmeMDL5vrp7FHe9Ee eWZ7VVnzx29KBdhv4uDyIMPXGXjrpvIFsxe5H9Wxof6nnkmAsbRtd1ILk2kZ2QEwVq+yCox CoRIyiox+5IjuhfBGKl9wvuDlaGER0pTNGcwUYqs0swlTKw8ne7XEITR6henMhrORYFcaJr HB8UcevB/I67MlstR6ydQ== X-UI-Out-Filterresults: notjunk:1; Hey, someone on irc noticed something interesting about AUTO_CD. If autocd attempts to cd into a directory that is a valid option for cd, the option is interpreted like normal and the directory doesn't change. Having autocd perform ''cd -- -1'' not ''cd -1'' would fix it. Src/exec.c seems to handle it, but i am exactly sure how.