2020-03-26 08:00:18 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
if ! zmodload zsh/rlimits 2>/dev/null
|
|
|
|
then
|
|
|
|
ZTST_unimplemented="the zsh/rlimits module was disabled by configure (see config.modules)"
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
zmodload zsh/rlimits
|
2020-03-06 12:12:06 +01:00
|
|
|
|
|
|
|
%test
|
|
|
|
|
|
|
|
limit | grep UNKNOWN || print OK
|
2021-11-12 22:33:37 +01:00
|
|
|
0:Check if there is unknown resource(s) in the system
|
2020-03-06 12:12:06 +01:00
|
|
|
>OK
|
|
|
|
F:A failure here does not indicate any error in zsh. It just means there
|
|
|
|
F:is a resource in your system that is unknown to zsh developers. Please
|
|
|
|
F:report this to zsh-workers mailing list.
|
2020-03-25 23:05:53 +01:00
|
|
|
|
|
|
|
() {
|
|
|
|
set -- ${(f)"$(ulimit -a)"}
|
|
|
|
set -- ${@%%:*}
|
|
|
|
typeset -aU unique_options=( "$@" )
|
|
|
|
# The value of $unique_options is, e.g., ( -t -f '-N 2' -s ... ).
|
|
|
|
(( $# == $#unique_options ))
|
|
|
|
}
|
|
|
|
0:check if limit option letters are unique
|
|
|
|
|