X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4B8DD7DF.6090006@redhat.com>
References: <4B8DCB6C.3010207@columbus.rr.com> 	 <2bf229d31003021901g4c7f3b8fu340c1be2886d5f3@mail.gmail.com> 	 <4B8DD7DF.6090006@redhat.com>
Date: Wed, 3 Mar 2010 06:27:41 -0500
Message-ID: <2bf229d31003030327v7d350815qcecde7c0557f8cfa@mail.gmail.com>
Subject: Re: "tail" command does not work as advertised
From: Chris Sutcliffe <ir0nh34d@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

>> Note that the +N notation is specific to --lines=, not the '-n'
>> shorthand.
>
> Wrong - the +N notation also works with -n:
>
> ps -a | tail -n +5

Ah, I was confused since 'tail -5' still works, but:

> This is a side affect of the change to the newer POSIX standard.
>  http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails

This explains it.

Cheers!

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

