mirror of
https://github.com/zsh-users/zsh
synced 2024-07-21 10:14:19 +00:00
15675: Src/Builtins/rlimits.awk: handle case where RLIM_NLIMITS is set to a number within an enum.
This commit is contained in:
parent
a90502aeb0
commit
ffec7684a7
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue