bug-coreutils
[Top][All Lists]
Advanced

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

Re: split() command


From: Eric Blake
Subject: Re: split() command
Date: Tue, 09 Dec 2008 20:45:19 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

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

According to Yongsheng Bai on 12/9/2008 8:38 PM:
> Dear Sir,
> 
> why does split() command has different options in different UniX systems? 
> i.e. -a option does not work on some Unix machines...

Your example of 'split -a' is required by POSIX, so it should work on any
Unix system, even when GNU coreutils are not installed:
http://www.opengroup.org/onlinepubs/9699919799/utilities/split.html

but other options, like 'split -C', are GNU extensions.

> Is this because of long option and short option difference?

Long options are also a GNU extension.  By the very definition of
extension, you cannot expect other Unix platforms to provide the same set
of extensions as GNU coreutils, although you should be able to install GNU
coreutils on pretty much any of today's common Unix systems to get your
favorite GNU extensions.

- --
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

iEYEARECAAYFAkk/O08ACgkQ84KuGfSFAYC12gCg1z0NhHVziNoF/N8T3O5jrkXw
2ScAn0/dqieLHt1P5k5XQXCpSOU2ZdGj
=yLtM
-----END PGP SIGNATURE-----




reply via email to

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