coreutils: seq puts the separator on wrong spot!
Bug #1161073 reported by
MMlosh
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
$ seq -s, 5
Expected: 1,2,3,4,5
Got: 1\n2,3,4,5,
(\n denotes a newline)
Also note the extreme difference between outputs of these
$ seq -s ',' 5
1\n2,3,4,5,
$ seq -s ', ' 5
1, 2, 3, 4, 5\n
description: | updated |
tags: | added: raring regression-release |
To post a comment you must log in.
Thank you for opening this bug and helping make Ubuntu better. First of all, please use 'ubuntu-bug coreutils' next time, so that a minimum of information can be automatically collected (like, for example, package version, coreutils version).
I can confirm this on coreutils 8.20 (Raring, version 8.20-3ubuntu5):
[cerdea- aws]cerdea@ xango3: /build/ buildd/ coreutils$ seq --version gnu.org/ licenses/ gpl.html>.
seq (GNU coreutils) 8.20
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper. aws]cerdea@ xango3: /build/ buildd/ coreutils$ seq -s, 5 [cerdea- aws]cerdea@ xango3: /build/ buildd/ coreutils$
[cerdea-
1
2,3,4,5,
But I cannot see it on a more up-to-date coreutils:
[cerdea- aws]cerdea@ xango3: /build/ buildd/ coreutils$ src/seq --version gnu.org/ licenses/ gpl.html>.
seq (GNU coreutils) 8.21.20-2c2d0
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper. aws]cerdea@ xango3: /build/ buildd/ coreutils$ src/seq -s, 5 aws]cerdea@ xango3: /build/ buildd/ coreutils$
[cerdea-
1,2,3,4,5
[cerdea-
So I will check as soon as possible for the fix.