Error returned for "unlimited" ulimit values

Bug #1176956 reported by quazgar on 2013-05-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
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)
Dustin Kirkland  (kirkland) wrote :

Committed revision 2100.

Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers