Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC PATCH 3/3] FAQ: sync newuser-install



On Wed, Aug 24, 2022 at 2:25 PM Eric Cook <llua@xxxxxxx> wrote:
> On 8/24/22 15:11, Felipe Contreras wrote:
> > On Wed, Aug 24, 2022 at 1:33 PM Eric Cook <llua@xxxxxxx> wrote:

> >> Aside from the arbitrary bump in HISTSIZE, if HISTFILE is set by default and
> >> zsh is invoked with -f which is common when debugging or testing you get the
> >> expected defaults. But if the user typically increases SAVEHIST from said
> >> default, because regardless of what you set it to, people will change it to
> >> their preference, you create the same problem that other shells like bash have,
> >> the truncation of HISTFILE to the default SAVEHIST upon the exit of that zsh -f session.
> >> usually without the user noticing for a period of time.
> >
> > So because of this corner case that 99.99% of people are never going
> > to hit we should bother 100% of users. It doesn't seem like an issue
> > worthy of so much consideration. Moreover, it could be solved in other
> > ways, like not setting HISTFILE when NO_RCS is on.
>
> Starting the shell without your dotfiles is commonly given advice when troubleshooting
> weird behavior, found across this mailing list, places like stackexchange and irc,
> It's not a corner case.

Starting the shell without dotfiles does not produce the behavior you
described, this isn't the corner-case. The corner-case you described
is more specific.

-- 
Felipe Contreras




Messages sorted by: Reverse Date, Date, Thread, Author