Change in cut behavior breaks scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Hardy |
Won't Fix
|
Undecided
|
Unassigned | ||
xen-common (Ubuntu) |
Expired
|
Low
|
Unassigned | ||
Hardy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: coreutils
When given a 0 field in cut it used to just treat it as 1; now it reports an error.
Old behavior (Gutsy):
$ echo foobar | cut -c0-3
foo
New behavior (Hardy):
$ echo foobar | cut -c0-3
cut: fields and positions are numbered from 1
Try `cut --help' for more information.
bash: echo: write error: Broken pipe
I wouldn't say this is a bug but it will cause problems elsewhere. I noticed the problem in the /etc/init.
Changed in xen-common: | |
importance: | Undecided → Low |
Not a bug in coreutils, marking as such.
Agreed that this should be fixed in any affected scripts for hardy; which should be a relatively small number, so far only the xen scripts seem to assume a 0 index is valid.