> Thanks for the report.
> However, that is the required behavior.
> I've changed cut's --help output and the texinfo documentation
> to mention this `feature':
> 
>   $ cut --help
>   ...
>     -f, --fields=LIST       output only these fields;  also print any line
>                               that contains no delimiter character, unless
>                               the -s option is specified
>   ...

As a random bit of insite into why this is I believe the original
reason was so that title lines and sub-heading lines without
delimiters would be passed through regardless of which field was
requested.  A file of tab delimited fields but with heading lines with
no tabs would pass all of those titles through unimpeded.

> [EMAIL PROTECTED] writes:
> | hi there,
> |
> | i think i've found an error in "cut"
> |
> | i've tried following :
> |
> | ~/> echo 1 2 3 4 5 | cut -d" " -f2-
> | 2 3 4 5
> | ~/> echo 1 | cut -d" " -f2-
> | 1
> |
> | i think that's wrong....
> | needn't it be an empty string ? "" ?
> |
> | this error accoured in
> | " GNU bash, version 1.14.7(1) "
> | " cut (GNU textutils) 2.0a david ihnat, david mackenzie, jim meyering  1999 fsf "
> | precompiled in "redhatlinux 6.2", german version

Reply via email to