[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nl command line option not recognized
From: |
Eric Blake |
Subject: |
Re: nl command line option not recognized |
Date: |
Fri, 13 Mar 2009 18:57:44 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Emmanuel Dumont on 3/13/2009 1:46 PM:
> Hi
Hello Emmanuel,
>
> I'd like to submit the following bug:
>
> % ls -1 * | nl --first-page=2
A bit of overkill. When stdout of ls is not a terminal, then the -1
option is redundant. And globbing * can run into command line length
limitations, which are avoided if you use a listing of . (or the implicit
default of ls). In other words, this is equivalent:
ls | nl --first-page=2
> nl: unrecognized option `--first-paeg=2'
Are you sure you copied and pasted this correctly? Your command line
claims you spelled "--first-page", but the error claims you spelled
"--first-paeg".
However, this bug has been previously reported, and fixed here:
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=26d3d
You should consider upgrading to coreutils 7.1, the latest stable version,
where the option is correctly documented as being spelled
- --starting-line-number. Meanwhile, you can still use that spelling (even
though it is undocumented) in your current version, or go with the short
option -v.
- --
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
iEYEARECAAYFAkm7AQgACgkQ84KuGfSFAYBZDQCdFnVVFfKSwm4Pp90bGGVOFM9U
7koAoKj1/UJ7nPaD5W26rqp/RqTjCfUy
=cmgY
-----END PGP SIGNATURE-----