zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <stephane@chazelas.org>
To: Experts Ravioli <experts.ravioli@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Setting cdablevars adds 10-15s to run time for non existing command
Date: Tue, 23 Mar 2021 12:40:33 +0000	[thread overview]
Message-ID: <20210323124033.g3p6d2ztsikhslzb@chazelas.org> (raw)
In-Reply-To: <CAMoJa6=uehHiLJfzbrLiJ9hn4GgS9R8sMgsC3_CJnx8Mz5BROA@mail.gmail.com>

2021-03-18 23:42:30 +0000, Experts Ravioli:
[...]
> 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.
[...]

See also:

https://unix.stackexchange.com/questions/606118/zsh-slow-doing-eval-with-path

There, I did say (among other things I invite you to read):

} I would personally stay clear of that cdablevars option as it's
} bound to give you bad surprises one day or another. Without it,
} you can always do cd ~user or cd ~var, and I find it much better
} to request it explicitly when you do want to cd into something
} other than the directory given as argument.
} 
} That cdablevars was already in the very first version of zsh
} from 1990, inspired by tcsh that does that by default. It
} predates the expansion of ~var. cdablevars should be considered
} as a historical artefact IMO.

-- 
Stephane


      parent reply	other threads:[~2021-03-23 12:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 23:42 Experts Ravioli
2021-03-23  2:55 ` Bart Schaefer
2021-03-23 12:40 ` Stephane Chazelas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210323124033.g3p6d2ztsikhslzb@chazelas.org \
    --to=stephane@chazelas.org \
    --cc=experts.ravioli@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).