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

Re: [PATCH] find RLIM_NLIMITS correctly on Cygwin



> 2020/01/09 22:15, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> 
> Yeah, the C preprocessor can't discover RLIMIT_* macros we don't know about in
> advance, I agree.  For that we'd need awk(1) or similar (maybe just «grep -o
> 'RLIMIT_[^ ]*'»).  Maybe something along these lines:

Thanks.
But I've started thinking that we can just use a resource name such as
"unknown8" (instead of "FOO") for unknown resource. Then rlimits.awk can
be removed as you have suggested originally.

Of cause there is a chance that the tail part of the macro name ("FOO") may
give some hint for users, but it is far from satisfactory anyway.
If users find "unknown8" in the output of the limit builtin, then *hopefully*
they report it to zsh/workers; then we can add it to the list of known
resources easily.




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