diff options
author | Elie De Brauwer <eliedebrauwer@gmail.com> | 2012-12-16 17:58:25 +0100 |
---|---|---|
committer | Elie De Brauwer <eliedebrauwer@gmail.com> | 2012-12-16 17:58:25 +0100 |
commit | 434d35197957969ee200fff0424807c1a97e7d2d (patch) | |
tree | 5f646699181fbbad9d8d8e0c13c1146af75a1b69 /scripts | |
parent | de08aef53c4611de5b64b332ac6c1b9c920b7d0b (diff) | |
download | toybox-434d35197957969ee200fff0424807c1a97e7d2d.tar.gz |
Extend seq to support -f (format string) and -s (string separator) as requested by LSB
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/seq.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/test/seq.test b/scripts/test/seq.test index d255f82d..3f3b4099 100755 --- a/scripts/test/seq.test +++ b/scripts/test/seq.test @@ -22,4 +22,7 @@ testing "seq count wrong way #2" "seq 8 2 4" "" "" "" testing "seq count by .3" "seq 3 .3 4" "3\n3.3\n3.6\n3.9\n" "" "" testing "seq count by -.9" "seq .7 -.9 -2.2" "0.7\n-0.2\n-1.1\n-2\n" "" "" testing "seq count by zero" "seq 4 0 8 | head -n 10" "" "" "" +testing "seq separator -" "seq -s - 1 3" "1-2-3\n" "" "" +testing "seq format string" 'seq -f %+01g -10 5 10' "-10\n-5\n+0\n+5\n+10\n" "" "" +testing "seq separator and format string" "seq -f \%03g -s \; 5 -1 0" "005;004;003;002;001;000\n" "" "" |