From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: .git/hooks/commit-msg Date: Wed, 10 Dec 2014 10:45:53 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877fxza4pa.fsf@lifelogs.com> References: <57F3BCF0-60FD-416F-8F68-192A2A941821@swipnet.se> <5484FB75.4080501@cs.ucla.edu> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418226688 5203 80.91.229.3 (10 Dec 2014 15:51:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 15:51:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 10 16:51:22 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XyjXt-0006Fa-2Q for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 16:51:21 +0100 Original-Received: from localhost ([::1]:46397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyjXs-0001mp-NH for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 10:51:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyjVv-0007OT-Cm for emacs-devel@gnu.org; Wed, 10 Dec 2014 10:49:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyjVp-0005eo-Fo for emacs-devel@gnu.org; Wed, 10 Dec 2014 10:49:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyjRu-0004vx-NM for emacs-devel@gnu.org; Wed, 10 Dec 2014 10:45:10 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XyjRt-0002Mq-8S for emacs-devel@gnu.org; Wed, 10 Dec 2014 16:45:09 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2014 16:45:09 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2014 16:45:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:sASHwsu7KQxTPT3KGo8htc57APU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179658 Archived-At: On Sun, 07 Dec 2014 17:14:29 -0800 Paul Eggert wrote: PE> Jan D. wrote: >> It keeps complaining about control caracter, even if there are none.... >> Does it assume GNU awk? PE> No, it assumes only POSIX awk. However, it turns out that FreeBSD awk PE> is buggy here; see FreeBSD bug#195792 PE> . PE> I worked around the FreeBSD bug by installing the attached patch to PE> the emacs-24 branch; this should be merged into the Emacs master in PE> due course. After applying the patch, you can run './autogen.sh' to PE> propagate the fix into your .git/hooks/commit-msg. On my Ubuntu system: mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan this line: nlines == 0 && !/[^[:space:]]/ { next } skips all lines, so I end up with "Empty change log entry" and an abort. For now I've removed it because I don't know awk well, so I can't fix it properly myself. I can rewrite that script in Perl if it's better. Whatever works. Ted