Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 26082 Details for
Bug 36337
sys-apps/coreutils-5.0.91-r2 has broken 'seq'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
seq.c.patch
seq.c.patch (text/plain), 1.04 KB, created by
SpanKY
on 2004-02-22 00:22:46 UTC
(
hide
)
Description:
seq.c.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2004-02-22 00:22:46 UTC
Size:
1.04 KB
patch
obsolete
>--- seq.c.orig 2004-02-22 02:53:28.520372848 -0500 >+++ seq.c 2004-02-22 03:22:09.478747408 -0500 >@@ -55,7 +55,7 @@ > static double first; > > /* The increment. */ >-static double step = 1.0; >+static double step; > > /* The last number. */ > static double last; >@@ -298,6 +298,7 @@ > { > int errs; > int optc; >+ int step_is_set; > > /* The printf(3) format used for output. */ > char *format_str = NULL; >@@ -313,6 +314,7 @@ > equal_width = 0; > separator = "\n"; > first = 1.0; >+ step_is_set = 0; > > /* Figure out the locale's idea of a decimal point. */ > #if HAVE_LOCALECONV >@@ -397,6 +399,7 @@ > if (optind < argc) > { > step = last; >+ step_is_set = 1; > last = scan_double_arg (argv[optind++]); > } > } >@@ -408,6 +411,13 @@ > usage (EXIT_FAILURE); > } > >+ if (!step_is_set) >+ { >+ step = (first <= last) ? 1.0 : -1.0; >+ if (step < 0) >+ error (0, 0, _("Please specify step of -1 since this behavior is obsolete and will be removed in the future")); >+ } >+ > if (format_str == NULL) > { > if (equal_width)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36337
: 26082