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

Re: (EXT) Re: Using the history expansion modifier 'a' results in excessive lstat calls



> On 25 May 2022 at 11:33 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> > On 25 May 2022 at 11:22 Stefan Radziuk <sradziuk@xxxxxxxxxxxxxxx> wrote:
> > > Will it be worth seeing what effects the following has?
> > 
> > This resolves the issue for me -- verified with strace. Thanks.
> >
> >  dnl CHECK FOR SYSTEMS REQUIRING GETCWD
> > +dnl This is now turned on by default, as we expect modern getcwd
> > +dnl implementations to work correctly.  Any exceptions should be added
> > +dnl to the first case.  Currently there are none, hence it is forced
> > +dnl not to match.
> 
> Unless anyone has strong views, I'll commit this --- hoping at the most
> we'll be look at edge effects on older or rarer systems which we're not
> going to track down any other way.

Not hearing comments, so this is committed.  Workers with such systems
are advised to keep watch for any oddities (very likely edge cases) in
getting the current directory.

pws




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