Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Setting cdablevars adds 10-15s to run time for non existing command
- X-seq: zsh-workers 48229
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Experts Ravioli <experts.ravioli@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Setting cdablevars adds 10-15s to run time for non existing command
- Date: Tue, 23 Mar 2021 12:40:33 +0000
- Archived-at: <https://zsh.org/workers/48229>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/20210323124033.g3p6d2ztsikhslzb%40chazelas.org>
- In-reply-to: <CAMoJa6=uehHiLJfzbrLiJ9hn4GgS9R8sMgsC3_CJnx8Mz5BROA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Experts Ravioli <experts.ravioli@xxxxxxxxx>, zsh-workers@xxxxxxx
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author