summaryrefslogtreecommitdiff
path: root/Test/B12limit.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-25 22:05:53 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-25 22:06:47 +0000
commit0903ddb7b981974c0f66113ae95790962e72d1de (patch)
tree5c7284281e08a484584124a057535e5d2c7fa831 /Test/B12limit.ztst
parent88484e9ea85d05fbfae9ce0ceee761959d356b26 (diff)
downloadzsh-0903ddb7b981974c0f66113ae95790962e72d1de.tar.gz
zsh-0903ddb7b981974c0f66113ae95790962e72d1de.zip
45590/0002 (in part): zsh/rlimits: Test that ulimit letters are unique.
Diffstat (limited to 'Test/B12limit.ztst')
-rw-r--r--Test/B12limit.ztst10
1 files changed, 10 insertions, 0 deletions
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
+