From mboxrd@z Thu Jan 1 00:00:00 1970 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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8719 invoked from network); 23 Mar 2021 02:56:05 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Mar 2021 02:56:05 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1616468165; b=BYoKwJXCX8UefrPyBSBL1u7Wh+jspXGEkD3aoqaq5eJthJIBLuH9SzuAFK0m6LrYAPgGzBmoqt cxAthxB1+iLBFhwyVYsMbakrb4svOGWc62cV+Q2L+8x5JHFmCADqJa4tuSieNVI7G7RcQ95kGJ I4hj5eS67mONnzPX6NsKmwaxgoIecvnPoWq5R+VfFZrf0+KmB+yt1ev3/+DBArAjLo29rg6E68 A1ZXOPt9hoWNy1mBLM0ygSnTkmjY8b7HvSmQd8yUGuze+CnFkgbA6D04t3dzLANFTxTr7Gcens 57Zw6qpp/f+ukF53l3qQWiI2iHFfLgpI+vqemKEG68ZXFA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1616468165; bh=tN2XZKRaC828gph7KFA6ZlBHnCMYGpDuY8sbck/kCx8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=qbOYNPc4QokuGzTBoB51ELaUZODpq41/Kh58laCmJ8tbzM92bB4zJuvRQoOhZvnMVZydLGyAeo yEf/0lyjppJ030WWxJDg5nyqp85TAs9smlBDZdNzX8AbLkTXm35nP/AX7KZfulEeQZ9d9A/x1V IBPV85YIiqJWZ+JQOvnPAygj+LzxEswVeO0h+YQ2KE7oPkv7lWIublKjugrMdfClh7eW3uPnd7 cD1NOC7ufu+9miDlK/XqqxbOMLz2z1jObowSMXx36o/mE2IJSCbBSz+YQc+uuX0YFfv1YPF9ZD +A+41Ue6fFF9AogoIWWNgkH7uDLSWnVZ8Th7FHVLPQbiRA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=o4N8GP30AV8f7QrGnmC15u9CNgpwHimNdlzG6Lec75I=; b=M815tjKYmO2B456yHGoYCf6T/M TLokIrQ+0ZkegufRwKim/aGmdeCziXt9GO/LCVepuJVqczC3pPRU7XKoSMz18+0vd2Mic0nltmuYu 3kqgrflsMX2ihu+x6w3LaFD948iP8SQYI+f083paQVEurymGpQ+2eH0rETMpbKjjNU66GWfx0GNFw dQ2rZLdP1UBqr+YtaxkeCS6YrXsOw6maQ2VLfJ17VmqncYKbt1Rf/P0rKnlEQErhFstOIFImr54bO dluRsv3UQ4vNhmWBhedY2M9GIqkzI6k+4/+CiKvifpeboqGF0SKHzoV/+npwga+Y+Dlw4rRnE3Tx1 DDsgnDKg==; Received: from authenticated user by zero.zsh.org with local id 1lOXD8-000D9r-Ba; Tue, 23 Mar 2021 02:56:02 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f49.google.com ([209.85.210.49]:36622) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lOXCs-000D00-WE; Tue, 23 Mar 2021 02:55:48 +0000 Received: by mail-ot1-f49.google.com with SMTP id g8-20020a9d6c480000b02901b65ca2432cso18103444otq.3 for ; Mon, 22 Mar 2021 19:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o4N8GP30AV8f7QrGnmC15u9CNgpwHimNdlzG6Lec75I=; b=npV7RdeOdUMiRb8Jcc6+ZewOAoviPEoQ0m/WkRfcgEeMGwrIEgoExauJt5Es6i4inZ 57VCPp49TXyNUY9pvVSqkrHdD6oFSecaUkwC68b63EKx5zUOcL0gkBobvIG2+92/N8FJ OBhLwqJ7iMQRAPIKJDnQd11kxxide7vsfUIerOB4+OUx0hatn6xrYDp50J9YmObMthPc 8B4bbEM5Y0HT5/jfBtsw+7AUqkB73aSTFpwR9EQj9eRMMeAXxwQhXtjE2FhgBxAzIdKL T/G6jqNfazpeBIv1Nc3ZuV0RCmIKtV0UPawUa3+OQEJJjz05JgK2OKrme5eMu39TMRCL MvMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o4N8GP30AV8f7QrGnmC15u9CNgpwHimNdlzG6Lec75I=; b=IJchL9t9FfSHotewCRHuZBidQc2P4Oja52csOLbspWIt+mszyeEeSWCH8dXhACnnTb uYSPd+gWiYK5JlISSuPLoLq8/q44TdiBcHQX8w9o1+LjFCJye53AxwjUwmGyduqf1te4 n/3IwLCmlfcK49Fvp5USXTl44nktrjHmyai/2ASO0AM+t4KffxkckiXxWADJwY8YM/nL oifGNtyABLugwy8qnA+MuWGbh8/ONmzZrZBi/u0tm+4SZnPai/0cSBhmA1zhoVH34/zn 7Ldv2EBr8qhus4n3PvdVT6Z9luD1qNNdQBJK8VxWRJtXM69PMdhDcgM+P93xqSa8BywF 9Etw== X-Gm-Message-State: AOAM5314Se4Ed6TVjbuSUgoNTg7Dd/q4EXFbPd/xYDHAHKXv4AbH3Xjb AT91WdXhCRC1YhO1ITM6UHes138rSs7FccZPj0RG5Q== X-Google-Smtp-Source: ABdhPJxjZfW8pxFnOJiN1FUAGot1o4AcRRQH5bNmfVqFqDliTXC9ypAlI/uShKGv5NeTs7Vvrp0Yr/SA71sTaSlVYe8= X-Received: by 2002:a05:6830:20d2:: with SMTP id z18mr2477589otq.260.1616468144744; Mon, 22 Mar 2021 19:55:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 22 Mar 2021 19:55:33 -0700 Message-ID: Subject: Re: Setting cdablevars adds 10-15s to run time for non existing command To: Experts Ravioli Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" X-Seq: 48226 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: Archived-At: Meant to reply to this a while ago but it fell down the stack. On Thu, Mar 18, 2021 at 4:42 PM Experts Ravioli wrote: > > If I use `setopt cdablevars` in my .zshrc and then I try to run a `insert_random_command_name_here` (which does not exist) the prompt returns after 10-15s. [...] > setopt autocd autopushd pushdminus pushdsilent pushdtohome cdablevars > > Does anyone have any idea? It's not (just) cdablevars, it's autocd. When you have both of those set, zsh attempts to interpret 'insert_random_command_name_here' as a possible reference to a directory to which to (auto)cd, which in turn results in a check for whether it should create parameter table entries for any location that might be related to that name. If your $path and $cdpath contain either a lot of directories or some potentially-slow remote mount points, that operation could be very time consuming. If it succeeded, the result would be cached and be fast the next time, but failure is always slow.