# HG changeset patch # User Rob Landley # Date 1385794646 21600 # Node ID ff22f24c9661c53d831167a917047555f33122fb # Parent f8c926309a21e8aa95180cf2d68813c4bfb9dbaf Fix cut. Some commands went in before "pending", and thus need cleanup but are enabled in defconfig. The fact cut used a function out of lib/pending.c is a hint it might be in this category... diff -r f8c926309a21 -r ff22f24c9661 toys/posix/cut.c --- a/toys/posix/cut.c Sat Nov 30 00:16:28 2013 -0600 +++ b/toys/posix/cut.c Sat Nov 30 00:57:26 2013 -0600 @@ -82,14 +82,14 @@ //Get start position. if (*(dtoken = strsep(&ctoken, "-"))) { - start = get_int_value(dtoken, 0, INT_MAX); + start = atolx_range(dtoken, 0, INT_MAX); start = (start?(start-1):start); } //Get end position. if (!ctoken) end = -1; //case e.g. 1,2,3 else if (*ctoken) {//case e.g. N-M - end = get_int_value(ctoken, 0, INT_MAX); + end = atolx_range(ctoken, 0, INT_MAX); if (!end) end = INT_MAX; end--; if(end == start) end = -1;