15675: Src/Builtins/rlimits.awk: handle case where RLIM_NLIMITS is set to a number within an enum.

This commit is contained in:
Clint Adams 2001-08-21 20:05:33 +00:00
parent a90502aeb0
commit ffec7684a7
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2001-08-21 Clint Adams <clint@zsh.org>
* 15675: Src/Builtins/rlimits.awk: handle case
where RLIM_NLIMITS is set to a number within an
enum.
2001-08-21 Bart Schaefer <schaefer@zsh.org>
* users/4157 (plus workers/15674): Completion/Unix/Command/_man:

View file

@ -58,7 +58,7 @@ BEGIN {limidx = 0}
/^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*RLIMIT_NLIMITS/ {
if(!nlimits) { nlimits = limidx }
}
/^[\t ]*RLIMIT_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
/^[\t ]*RLIM(IT)?_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
limindex = index($0, "=")
limtail = substr($0, limindex, 80)
split(limtail, tmp)