Error returned for "unlimited" ulimit values
Bug #1176956 reported by
quazgar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
When "ulimit -{n,u}" returns "unlimited", the [ ... -ge ... ] test fails:
$ byobu --version
byobu version 5.37
[: 76: Illegal number: unlimited
WARNING: ulimit -u is too low
It might make sense to test the result against the "unlimited" string first and against the number second:
[ $(bash -c "ulimit -n") == "unlimited" ] || [ $(bash -c "ulimit -n") -ge 15 ] || echo ...
Changed in byobu: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Committed revision 2100.