Public bug reported:

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.d/xendomains script.  Treating 0 as
1 is really harmless so leaving the old behavior doesn't seem to present
a problem.  If the new behavior remains it might be worth trying to find
places where it causes problems and fix them prior to the release of
Hardy.

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: xen-common (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: xen-common (Ubuntu)
   Importance: Undecided
       Status: New

-- 
Change in cut behavior breaks scripts
https://bugs.launchpad.net/bugs/211262
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to