diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Test/B12limit.ztst | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 6e69f0a9b..5f6dfe3ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-25 Daniel Shahaf <d.s@daniel.shahaf.name> + + * 45590/0002 (in part): Test/B12limit.ztst: zsh/rlimits: Test + that ulimit letters are unique. + 2020-03-25 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 45601: Test/E02xtrace.ztst: fix one more return status diff --git a/Test/B12limit.ztst b/Test/B12limit.ztst index 5dd7afdbe..922751369 100644 --- a/Test/B12limit.ztst +++ b/Test/B12limit.ztst @@ -8,3 +8,13 @@ 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. + + () { + 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 + |