bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug On CUT


From: Eric Blake
Subject: Re: Bug On CUT
Date: Wed, 15 Apr 2009 18:05:02 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ar3s on 4/15/2009 5:25 PM:
> 
> echo "a"|cut --delimiter=" " --fields=2-
> I have assumed that it would return an empty string
> but it returns a
> 
> Is it normal or is it a bug in the matrix ?

Not a bug.  According to POSIX, when -f (--fields) is in effect, "Lines
with no field delimiters shall be passed through intact, unless -s is
specified."

http://www.opengroup.org/onlinepubs/9699919799/utilities/cut.html

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknmdi4ACgkQ84KuGfSFAYAkTgCgisZvDyTqndnpeCndakyi+5X3
MF0An25gnnLbOhxNseucHbdiJu0ox5gL
=GStU
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]