Error returned for "unlimited" ulimit values

Bug #1176956 reported by quazgar
6
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)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.