X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.2 required=5.0 tests=AWL,BAYES_00,BOTNET,RDNS_NONE X-Spam-Check-By: sourceware.org Message-ID: <4AE827D9.4060505@onevision.de> Date: Wed, 28 Oct 2009 12:15:37 +0100 From: Roland Schwingel User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: R: Cygwin 1.5 vs. 1.7: tail Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi Marco, Thanks for your reply. Marco Atzeri wrote on 28.10.2009 12:05:09: > --- Mer 28/10/09, Roland Schwingel ha scritto: > > > Hi... > > > > At present I am using cygwin 1.5 mainly, but I have also > > started to migrate over to 1.7. Everything works quite well, > > but I encountered a problem with the tail command. Obviously > > the + syntax does no longer work in 1.7 > > > > In 1.5 when I call eg. > > tail +3 /path/to/some/file > > > > I get the whole file printed starting with line 3 (the > > first 2 lines are omitted). With cygwin 1.7 this does no > > longer work. > > I get an error: > > tail: cannot open '+3' for reading: No such file or > > directory. > > > > Is this on purpose or an accident? > > the manual says > tail -N +3 /path/to/some/file You mean tail -n +3 /path/to/some/file If I do that it will work fine. I just wonder it this change was on purpose or not, because the other form (without -n) still work on other systems like mac/linux. I do share my scripts across several platforms. And these particular tail line haven't changes for ages here. Roland -- 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