Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448716 - sys-apps/coreutils-8.20 - `seq -s ...` uses newline instead of requested separator for first char of output
Summary: sys-apps/coreutils-8.20 - `seq -s ...` uses newline instead of requested sepa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 472738 474776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-26 23:00 UTC by Homer
Modified: 2013-06-25 20:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Homer 2012-12-26 23:00:22 UTC
seq -s '|' 1 5
1
2|3|4|5|

The first separator is not the requested "|" but a newline instead.

This is causing my scripts to fail with "syntax error near unexpected token `newline'" type errors.

Reproducible: Always

Steps to Reproduce:

1. emerge sys-apps/coreutils-8.20
2. Use seq to produce a sequence of numbers with a given separator

Actual Results:  
First separator is the wrong character (newline).

Expected Results:  
The first separator should be as requested, not a newline.

No idea what caused this. It worked before, and I've made no changes to my configs. Affects all of my Gentoo boxes.
Comment 1 SpanKY gentoo-dev 2012-12-27 02:13:12 UTC
looks like it's been reported+fixed upstream

http://git.savannah.gnu.org/cgit/coreutils.git/diff/?id=76f606a9544bd67629bd4766ff6efe8bf42b20d9
Comment 2 SpanKY gentoo-dev 2013-01-11 06:21:29 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from upstream for `seq -s` misbehavior
http://sources.gentoo.org/gentoo/src/patchsets/coreutils/8.20/041_all_coreutils-seq-s-newline.patch?rev=1.1
http://sources.gentoo.org/sys-apps/coreutils/coreutils-8.20-r2.ebuild?rev=1.1
Comment 3 Rafał Mużyło 2013-06-09 11:58:12 UTC
*** Bug 472738 has been marked as a duplicate of this bug. ***
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-25 20:35:53 UTC
*** Bug 474776 has been marked as a duplicate of this bug. ***