This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.1: /usrb/bin/tail.exe


According to Peter Koch on 1/20/2010 3:40 AM:
> The culprint is tail.exe
> 
> 1. tail +N does not work anymore. Obsolete? How can i re-enable this?

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails

'tail +2' is not portable.  Use 'tail -n +2'.


> 2. tail overwrites redirected files!
> 
> $ echo "1" > a
> $ echo "22" >> a
> $ echo "333" >> a
> $ cat a
> 1
> 22
> 333
> echo "x" > x
> $ tail -1 a >> x
> $ cat x
> 333

Works for me:

$ cat a
1
22
333
$ echo 1 > x
$ tail -1 a >> x
$ cat x
1
333

I tested on both binary and text mounts.  Are you sure you used '>>', not '>'?

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

Eric Blake             ebb9@byu.net

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]