diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-25 22:05:53 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-25 22:06:47 +0000 |
commit | 0903ddb7b981974c0f66113ae95790962e72d1de (patch) | |
tree | 5c7284281e08a484584124a057535e5d2c7fa831 | |
parent | 88484e9ea85d05fbfae9ce0ceee761959d356b26 (diff) | |
download | zsh-0903ddb7b981974c0f66113ae95790962e72d1de.tar.gz zsh-0903ddb7b981974c0f66113ae95790962e72d1de.tar.xz zsh-0903ddb7b981974c0f66113ae95790962e72d1de.zip |
45590/0002 (in part): zsh/rlimits: Test that ulimit letters are unique.
-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 + |