From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 5AAE3217EE for ; Tue, 13 Feb 2024 11:05:44 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1707818744; b=sG05PWkRm59pIsNpeduiFKd6DFBX0TYWibYPgBvttQB+Uxa9YrSFyTuwdqiMHNggmM7k8Eko/G O5L8KrJCKu+VbvZMO2kMGPr7hKidZLjBEgfQLKrcARrlxv/OeN4l4LUB7ff8MBt+nKk74LZ9vR MeW+vbWHSqhsz+qI5QRYWiEM4lQVdK5JfVo0FwiWnMeIWnKEpZ2VJC5zVJuOuK3g252AVmMWN9 t5FEGCfONrtYeLQhPWDxkWcb10hwPSxDme7RQ/Aa4hMhAfgQqGAJKdtTdGfTcHWDvnAjanIJCr s04IuqPgRA4NNUwiSawCtXKXV7uVr+ASbn9kDBDrzWugUg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dkim=pass header.d=abc.se header.s=default header.a=rsa-sha256; dmarc=none header.from=abc.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1707818744; bh=rgJJJsaMNhQalzD7vHtcQSSF/O0N0VWPSKNk9thfig0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=B7tAqQ5s+O+Is1DI5o6YBLZKdHN/dlZEmEi4sYZFuLwFdP2RxJ36c6HHeSdv98FGQVdCoIfwrE ke1wIpaHxSNGqeJ6lHxW7bt2FMF+4YwinzWzUQER5R0wLsfEDXOc5Rdibkv6V+dZ96Kvz5/0jY 2/U/u+v3zDcEu17lVBsvBrM0d5Bl2v6XPQ4JGPDCfyvBOtrJI63XWnjkb5vRThM1ao0cD7x3W1 o9lZqjkck0986XisshJ6WqW3XdkrkzQI4j3TVpL4ksS1E+pwD/FiQmbK8mk5N7Tgh2aExFI3Gy HPTVpEA3k7ljEV39TS0Jv8CqZGhKpBiopQAWGf7TSAILlw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=1McpnIUw2lhorwBERqTHcJJOQuhAMenjZuy7K/Bseyc=; b=iT27ei9iq1KzAVZVd+UGyFkbJs KG/YHa33TUHirXELOoK5q7FM2mN5e4ROKT+fGQwfv+P5lc/SF16hJ8WRP9gOtn9uw91iCZJ/R8qAI YaEfklnmvNgxCrhzvkPP8C03mEa65wmZ0gwVWfpb1E4JnrE7DWYx4LaYiOeRYyF5OGt4mqGKjymzd /jFAyxOAw/MCa/i9NY+fCxxpbYCK8E7lr29Jmjq4ji7jDbLVKtlC3Xs/qwgBVQArBVm5hIL+Hjo9R nFDgwihTULSg08ms7RtiF7vz0EgfRah0diV1cKVPQNm5MUxWEw4mnXxeFdZTCOICfe+0RvcBTdOYp 1i9QiqeQ==; Received: by zero.zsh.org with local id 1rZpfc-000Oqc-PA; Tue, 13 Feb 2024 10:05:44 +0000 Authentication-Results: zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dkim=pass header.d=abc.se header.s=default header.a=rsa-sha256; dmarc=none header.from=abc.se; arc=none Received: from hekla.abc.se ([158.174.61.227]:22601) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rZpfN-000OWr-Pi; Tue, 13 Feb 2024 10:05:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=1McpnIUw2l horwBERqTHcJJOQuhAMenjZuy7K/Bseyc=; h=in-reply-to:references:subject: cc:to:from:date; d=abc.se; b=RxOXAeK2UoINm0XSJgeCUFoy9DA0LufyjB4IoPs5d Y64udTMIblw9i8GX2i/Z4Wqy9L13Dcz2L7fj/SeRYyc4xQVVacfbolOFut5jn9w7g4KKco pgn93w7cGjvlEzu5Mj+WBhyMmbAQoX1evca9JN3XVF2Aojx2PQiyOnznVXzn/dvFeMitmy dGyqbUGIrjz1LkZ7B/QOM2bhXniQwQ4upAA3yq/xSCtdMicQt93QQAJcbSTEfucGx/L+qx t3x2yFesRiDvanvS8p8VO7JwKqwR9f0XMLXiSv/m+G9Z5DmYvfvW8BdKtB2DeOyGpd6K17 xWpiuD0uohI/aJjXsJlzw== Received: from harpo.local (94-255-132-157.cust.bredband2.com [94.255.132.157]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id de6780e8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 13 Feb 2024 11:05:29 +0100 (CET) Date: Tue, 13 Feb 2024 11:05:27 +0100 From: Andreas =?iso-8859-1?B?S+Ro5HJp?= To: Ajeet D'Souza <98ajeet@gmail.com> Cc: zsh-workers@zsh.org Subject: Re: command cd doesn't work on some builds of zsh Message-ID: Mail-Followup-To: Ajeet D'Souza <98ajeet@gmail.com>, zsh-workers@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Seq: 52537 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Tue, Feb 13, 2024 at 03:24:22PM +0530, Ajeet D'Souza wrote: > Hi, I found inconsistent behaviour of the command builtin in some builds on > zsh. > > On Fedora 39: > *$ zsh --version* > zsh 5.9 (x86_64-redhat-linux-gnu) > *$ zsh -c 'command cd'* > > On Debian 10: > *$ zsh --version* > zsh 5.9 (x86_64-unknown-linux-gnu) > *$ zsh -c 'command cd'* > zsh:1: command not found: cd > > According to the manual, command cd should work: > > > Run command with args suppressing the normal shell function lookup. *Only > > builtin commands* or commands found in the PATH are executed. > > > Any idea why different builds on zsh produce different outcomes here? Is there in fact an external cd command on the Fedora system? Is the POSIX_BUILTINS zsh shell option set by default on the Fedora system? -- Andreas (Kusalananda) Kähäri Uppsala, Sweden .