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

Re: /proc slows % echo /**/*/etc/r*(/N)



On Sun, Jan 21, 2024 at 11:59 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2024-01-21 11:09, Bart Schaefer wrote:
>>
>> ... so by expanding that you're traversing the
>> whole filesystem again, which takes you back to /proc/ again, and so
>> on for every PID until zsh gives up (probably because it can't
>> allocate any more memory).
>
> It had that looping feeling.  Didn't realize that it was crashing tho, I thought it was actually finishing.

This is a situation wherein zsh can tell that it's not able to
allocate memory, so it just stops trying without crashing.  If it had
crashed you'd have got nothing back and probably lost your shell
session.




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