From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, MIME_BOUND_DIGITS_15,RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 62b5fe59 for ; Fri, 12 Apr 2019 16:55:39 +0000 (UTC) Received: (qmail 11547 invoked by alias); 12 Apr 2019 16:55:23 -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: List-Unsubscribe: X-Seq: 44221 Received: (qmail 10690 invoked by uid 1010); 12 Apr 2019 16:55:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25412. spamassassin: 3.4.2. Clear:RC:0(209.85.167.52):SA:0(-1.2/5.0):. Processed in 2.499329 secs); 12 Apr 2019 16:55:23 -0000 X-Envelope-From: pierspowlesland@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.167.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=q3TqcQbqj7z9snQ6hep+WO0b92pFmUqdXHjxoSEk6jw=; b=VwZgG1RucIzM3u5R68WMu0RpSm09Nu4LuSpmmIViDXpSFOaYbOQYNUGnK9RmyyV4W6 fc1yEHvUgK4izNEmoC0uY0T8wa4wdZDn9kSBHTu0rRX6MUsF9OWnsNs/V8zODtwLqBHA 3hzMBc4HmrCXB0DePdApGiQUHgTV1zma147jzEwpHhJBnO9MgRZnIox7km78BmCehwQM CiQZwD+0+9zBUa0ebW2xBJwO6XSvUtuypnLZTWH0yS9yCUcuXxhR/jrkLVZl9vGzKcR4 gdDW5qzbuoX4mTq5AHa1dJLJuKlL5r2696auTkoHG9W/mzRdccGV+lFzHZ7qQu6Ru/af XHEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q3TqcQbqj7z9snQ6hep+WO0b92pFmUqdXHjxoSEk6jw=; b=LF+6YNKH6yyx8GuxVQr6UQ0Kwr2MkVmI2ooIK9AN+gjGEOqlvspZcrrPqkAHXcxgQ8 I3qhVxiOufJzyVRcGxqOdM6dadgox7fbGEX3yVQhwkQd0CK397L+UkYUQcCYByd4Y4yY Rm6CdkLM+ytebzRNTVs/ojJOpUhhVf2361HPHNbnKN1IXAMbo6qKJEkwKk5VXEsqhJ3A UpuGYjExc6M6fKsJHFy5zrSpf2kUyI4KrX41Ts15bgo3rufBQT984aaCRdYWURB+yLXh UKCCN9dk49GL296h53T8q70GSH1CubeG3bNGJiC+luF7waH2joF7dpuxioe01n7MsMmo fo/Q== X-Gm-Message-State: APjAAAUG3r34DO20CS8cRVLr3ReuNWhcoYqFRISHcEOMgQZFTGmM8Am1 AdDh7zFxez0VFLiz4qdeQSVrMafF37BYzXxPPl+CKdD0UHw= X-Google-Smtp-Source: APXvYqyoGOrGqjej7Tdy0POZExkqnkfUVqtUqkSsPo5GWi1Siw6ZWsNdhKwcrx5n9qgji2GfU/Yn/+Dv2ha8fPmfuR8= X-Received: by 2002:a19:7702:: with SMTP id s2mr12197872lfc.102.1555088086670; Fri, 12 Apr 2019 09:54:46 -0700 (PDT) MIME-Version: 1.0 From: Piers Powlesland Date: Fri, 12 Apr 2019 17:54:35 +0100 Message-ID: Subject: BUG: AUTO_CD is not respecting binaries in PATH To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000000022620586582922" --0000000000000022620586582922 Content-Type: text/plain; charset="UTF-8" With AUTO_CD set and I enter a binary name that is available on my PATH but there is a subdirectory of the same name, then zsh cds into that directory when instead it should exectue the binary of the same name. E.G. [17:44]piers@laptop:~/projects $ mkdir zsh [17:45]piers@laptop:~/projects $ zsh [17:45]piers@laptop:~/projects/zsh $ which zsh /usr/bin/zsh [17:45]piers@laptop:~/projects/zsh $ echo $PATH /home/piers/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin According to the docs this is not the correct behaviour, sine these are commands that can be executed. >If a command is issued that can't be executed as a normal command, and the >command is the name of a directory, perform the cd command to that directory. >This option is only applicable if the option SHIN_STDIN is set, i.e. if >commands are being read from standard input. The option is designed for >interactive use; it is recommended that cd be used explicitly in scripts to >avoid ambiguity. I'm running: zsh 5.4.2 (x86_64-ubuntu-linux-gnu) with kernel: 4.19.14-041914-generic --0000000000000022620586582922--