From MAILER-DAEMON Tue Jun 02 08:14:52 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jg5oi-0002iz-I1 for mharc-bug-recutils@gnu.org; Tue, 02 Jun 2020 08:14:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg5og-0002ie-RC for bug-recutils@gnu.org; Tue, 02 Jun 2020 08:14:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42971) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg5oe-0004us-VQ; Tue, 02 Jun 2020 08:14:48 -0400 Received: from x4db68e4f.dyn.telefonica.de ([77.182.142.79]:58620 helo=termi.gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jg5oe-0004Ij-0j; Tue, 02 Jun 2020 08:14:48 -0400 From: "Jose E. Marchesi" To: John Darrington Cc: bug-recutils@gnu.org Subject: Re: Recfix fails without warning on non-existent files References: <20200531082121.GA7509@jocasta.intra> Date: Tue, 02 Jun 2020 14:14:43 +0200 In-Reply-To: <20200531082121.GA7509@jocasta.intra> (John Darrington's message of "Sun, 31 May 2020 10:21:21 +0200") Message-ID: <87pnahhdfw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 12:14:51 -0000 If I type "recfix /no/such/file" then recfix (correctly) returns 1, but does not print anything on stdout/stderr I think it ought to give some kind of warning that the file does not exist. Fixed in git. Thanks! From MAILER-DAEMON Tue Jun 02 08:23:12 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jg5wm-0007z2-1K for mharc-bug-recutils@gnu.org; Tue, 02 Jun 2020 08:23:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg5wj-0007vU-EJ for bug-recutils@gnu.org; Tue, 02 Jun 2020 08:23:09 -0400 Received: from de.cellform.com ([88.217.224.109]:42100 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg5wh-0006EN-SW; Tue, 02 Jun 2020 08:23:08 -0400 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTPS id 052CMsP5005073 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 2 Jun 2020 14:22:54 +0200 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id 052CMslt005072; Tue, 2 Jun 2020 14:22:54 +0200 Date: Tue, 2 Jun 2020 14:22:53 +0200 From: John Darrington To: "Jose E. Marchesi" Cc: John Darrington , bug-recutils@gnu.org Subject: Re: Recfix fails without warning on non-existent files Message-ID: <20200602122253.GA5002@jocasta.intra> References: <20200531082121.GA7509@jocasta.intra> <87pnahhdfw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pnahhdfw.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=88.217.224.109; envelope-from=john@darrington.wattle.id.au; helo=jocasta.intra X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/02 08:22:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 12:23:09 -0000 Thanks. I would have written this something like: if (!db) { int err = errno; fprintf (stderr, _("recfix: error: cannot read file %s: %s"), recfix_file, strerror (err)); return EXIT_FAILURE; } That way, the user gets a hint about *why* recfix cannot read the file. J' On Tue, Jun 02, 2020 at 02:14:43PM +0200, Jose E. Marchesi wrote: If I type "recfix /no/such/file" then recfix (correctly) returns 1, but does not print anything on stdout/stderr I think it ought to give some kind of warning that the file does not exist. Fixed in git. Thanks! From MAILER-DAEMON Tue Jun 02 08:31:45 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jg653-0002io-2e for mharc-bug-recutils@gnu.org; Tue, 02 Jun 2020 08:31:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg651-0002id-Dz for bug-recutils@gnu.org; Tue, 02 Jun 2020 08:31:43 -0400 Received: from de.cellform.com ([88.217.224.109]:42118 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg64z-0007ji-IM; Tue, 02 Jun 2020 08:31:42 -0400 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTPS id 052CVbLn005555 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 2 Jun 2020 14:31:37 +0200 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id 052CVahu005554; Tue, 2 Jun 2020 14:31:36 +0200 Date: Tue, 2 Jun 2020 14:31:36 +0200 From: John Darrington To: John Darrington Cc: "Jose E. Marchesi" , bug-recutils@gnu.org Subject: Re: Recfix fails without warning on non-existent files Message-ID: <20200602123136.GA5507@jocasta.intra> References: <20200531082121.GA7509@jocasta.intra> <87pnahhdfw.fsf@gnu.org> <20200602122253.GA5002@jocasta.intra> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200602122253.GA5002@jocasta.intra> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=88.217.224.109; envelope-from=john@darrington.wattle.id.au; helo=jocasta.intra X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/02 08:22:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 12:31:43 -0000 Also, the error message needs a terminating "\n" J' On Tue, Jun 02, 2020 at 02:22:53PM +0200, John Darrington wrote: Thanks. I would have written this something like: if (!db) { int err = errno; fprintf (stderr, _("recfix: error: cannot read file %s: %s"), recfix_file, strerror (err)); return EXIT_FAILURE; } That way, the user gets a hint about *why* recfix cannot read the file. J' On Tue, Jun 02, 2020 at 02:14:43PM +0200, Jose E. Marchesi wrote: If I type "recfix /no/such/file" then recfix (correctly) returns 1, but does not print anything on stdout/stderr I think it ought to give some kind of warning that the file does not exist. Fixed in git. Thanks! From MAILER-DAEMON Tue Jun 02 09:07:36 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jg6dj-0000FF-St for mharc-bug-recutils@gnu.org; Tue, 02 Jun 2020 09:07:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg6di-0000CU-7q for bug-recutils@gnu.org; Tue, 02 Jun 2020 09:07:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43735) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg6dg-0006Bu-8s; Tue, 02 Jun 2020 09:07:32 -0400 Received: from [141.143.193.77] (port=59480 helo=termi.gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jg6de-0000SM-VC; Tue, 02 Jun 2020 09:07:31 -0400 From: "Jose E. Marchesi" To: John Darrington Cc: bug-recutils@gnu.org Subject: Re: Recfix fails without warning on non-existent files References: <20200531082121.GA7509@jocasta.intra> <87pnahhdfw.fsf@gnu.org> <20200602122253.GA5002@jocasta.intra> <20200602123136.GA5507@jocasta.intra> Date: Tue, 02 Jun 2020 15:07:26 +0200 In-Reply-To: <20200602123136.GA5507@jocasta.intra> (John Darrington's message of "Tue, 2 Jun 2020 14:31:36 +0200") Message-ID: <87ftbdfwfl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 13:07:34 -0000 Also, the error message needs a terminating "\n" I added the newline. Thanks for noticing. From MAILER-DAEMON Mon Jun 29 19:09:30 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jq2u2-0006pE-Jy for mharc-bug-recutils@gnu.org; Mon, 29 Jun 2020 19:09:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq2u1-0006nP-Fd for bug-recutils@gnu.org; Mon, 29 Jun 2020 19:09:29 -0400 Received: from sonic315-55.consmr.mail.gq1.yahoo.com ([98.137.65.31]:38694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jq2ty-0003N5-Ks for bug-recutils@gnu.org; Mon, 29 Jun 2020 19:09:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1593472163; bh=dT7uWlSxbLCNMalrK97WyiKeS6jIbl6m5qz6Dmx3+Ok=; h=To:From:Subject:Date:References:From:Subject; b=QOqa7s0nN+5ixaMOBNf5Rv61hv7SmvyoVZYKJDdbuAbx7NqXunbsdOGQqsOlxgcKBrTjO0mNWutDHiVJ05SEeeae7EsjHi27YDKbH/kt9F+R5SrHnY+60zNh0tXNjetS43Jfbc4WIgTqd5U4chz0hwA8pf74blslEczw2fGgJVRHm8SF5+AvV8ks11uU+7kyY4UHPjUyUFz2Z5qrfaUfvbN+UeAUgbZjen1mC6wLoeeXYLTzP7WfWnaQ+ysAz5oD7UR0dgplqpyK5Vu9AbYptmSb7iKlVVjzKFd2yS8yufIm0yOKRHqRoW/9M7k8M/0AMs0aNze0/CJKK0S0AZEH+A== X-YMail-OSG: KyU9zMcVM1nBYyXX0XAV5WBs3DJuThiVdYtJS99mlMy5ytjaP6nqAd7HwYV1KIa DFtPzIBDFA5MpqC0ikCApi7ewVvruJuQB3fiyp49xBijozaonq9kaC42MniUpWU7QoV9RPl_I2.L W.JAKs2B6XtrqdV0m.xRMtNwKUUPoPS8_QzCS6uI30qlicxHFzD8VcBxr8aREHSDX4_HNYQ42S72 GolpvVCi1z8NSXH0M8LR88j_Rdvmg7hKfTLcr3gyYvfyAlYb1mM2hYkNFlkvqDVkp6blnhQrqdMw hzTJWtqQvhGrycjFkdL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Cm3K6Iq0ANVqniJGvKZ4UcR6KAPviUPUyAShj3lo .Pgb23Did1itPt7tmyd0h2kzeGy6jYKJRAj0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 29 Jun 2020 23:09:23 +0000 Received: by smtp406.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 17d875e4d731268e8c5bf38c21410515; Mon, 29 Jun 2020 23:09:18 +0000 (UTC) To: bug-recutils@gnu.org From: Charles Millar Subject: apparently valid recutils file created when saved with comma Message-ID: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> Date: Mon, 29 Jun 2020 19:09:16 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit References: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04.ref@verizon.net> X-Mailer: WebService/1.1.16197 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 630 Received-SPF: pass client-ip=98.137.65.31; envelope-from=millarc@verizon.net; helo=sonic315-55.consmr.mail.gq1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 19:09:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 23:09:29 -0000 Recutils version 1.9 I inadvertently saved a recutils file as something,rec (something-comma-rec) After a few attempts to print the records using recsel on something-dot-rec, I realized that the file name contained a comma not a dot. So I called recsel on something-comma-rec and the records in the file were printed out. I tried a couple of other operations such as recfix , and no errors. I would expect an error message such as "Invalid recutils file." This a bug or is there some deep dark secret concerning naming conventions? After all, the manual uses "dot"rec (or "period"rec, if you prefer.) Charlie Millar From MAILER-DAEMON Mon Jun 29 19:19:26 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jq33e-00080n-5F for mharc-bug-recutils@gnu.org; Mon, 29 Jun 2020 19:19:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq33c-00080f-Va for bug-recutils@gnu.org; Mon, 29 Jun 2020 19:19:25 -0400 Received: from sonic315-55.consmr.mail.gq1.yahoo.com ([98.137.65.31]:41201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jq33a-0004pY-MS for bug-recutils@gnu.org; Mon, 29 Jun 2020 19:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1593472760; bh=GBp+ppRTXILzkiVxjz3pQVbAfHqmit0NL7owHZzrwqY=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=e/+H7t6qd156hyMjR+onRB/zlhqrbLDFlo7Er9WLnYtFkWhIv8yyqifcn6lgCT+X+RNgZjX44eH1pMHBznhlQdSyq25UZoy2lHVU0aLDGhpCiwV7j0rHxOeF40mYJvbYpT/sHnFC/dd54EJB4ofsFCgERMQ48y9UUAfWieGuzuap03IaoYhJ4SRthKxtVxp7r43a6czkbpIYhtnbeieJ0xbD9rUqgsECJCpR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Z49wbE7 9iFviZPYQULP6TdWTNblSfUra.FVqxhelzFGX1wlAegvdRLTI0aOmu48DVj0ARappr.o_86.MIUe uNn.gFave6ZTneUjNwW.HbiIMOzE1Eekoca_XFvBTUdtiIVPEHbErjVMk1RpxcN2IgnzjscdubyE RXVqep5LFSIzWiKXWlCDUZ1Shf2QLCufQfTV7Ubt7T1jYXXyilTPja5JybUXG8zrsYTsjwS2uVRT zyLdK8qVrYCAfov4S3jua_Nf_ek4MadyqowaxQURDvAUqCJwiklxvZhxOuw9hSfjaZXf_7mb7SBx QUIRqPLEgm8Sfd2CJlRNI0RaK5Q0aQimreFvx_hysGDeUiADKnxgOx7g2Aol.2q6ZWjsn57SqVNG xThl1_zHfc8nUmYvR.joXWaMvJIZyRauZYWg4vyp60Kfiu0Ty8wkhOoGJ7tAmi2_olU.rTNAg0Bh PcYRYfZrj_BTTCEM_TiyStcUswr1OLazuED1iWRtGJwLWakk- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 29 Jun 2020 23:19:20 +0000 Received: by smtp413.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b488c696023acae89f24e9b424c36c50; Mon, 29 Jun 2020 23:19:16 +0000 (UTC) Subject: Re: apparently valid recutils file created when saved with comma To: bug-recutils@gnu.org References: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04.ref@verizon.net> <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> From: Charles Millar Message-ID: Date: Mon, 29 Jun 2020 19:19:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.16197 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 745 Received-SPF: pass client-ip=98.137.65.31; envelope-from=millarc@verizon.net; helo=sonic315-55.consmr.mail.gq1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 19:09:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 23:19:25 -0000 Sould be version 1.8.90 On 6/29/20 7:09 PM, Charles Millar wrote: > Recutils version 1.9 > > I inadvertently saved a recutils file as something,rec > (something-comma-rec) > > After a few attempts to print the records using recsel on > something-dot-rec, I realized that the file name contained a comma not a > dot. > > So I called recsel on something-comma-rec and the records in the file > were printed out. I tried a couple of other operations such asĀ  recfix , > and no errors. > > I would expect an error message such as "Invalid recutils file." > > This a bug or is there some deep dark secret concerning naming > conventions? After all, the manual uses "dot"rec (or "period"rec, if you > prefer.) > > Charlie Millar > > From MAILER-DAEMON Tue Jun 30 05:59:24 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jqD2y-0006cn-Ig for mharc-bug-recutils@gnu.org; Tue, 30 Jun 2020 05:59:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqD2x-0006bg-2t for bug-recutils@gnu.org; Tue, 30 Jun 2020 05:59:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48077) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqD2w-0003lK-QV; Tue, 30 Jun 2020 05:59:22 -0400 Received: from [141.143.193.71] (port=46593 helo=termi.gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jqD2v-00040s-Tt; Tue, 30 Jun 2020 05:59:22 -0400 From: "Jose E. Marchesi" To: Charles Millar Cc: bug-recutils@gnu.org Subject: Re: apparently valid recutils file created when saved with comma References: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04.ref@verizon.net> <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> Date: Tue, 30 Jun 2020 11:59:16 +0200 In-Reply-To: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> (Charles Millar's message of "Mon, 29 Jun 2020 19:09:16 -0400") Message-ID: <871rlwyivf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 09:59:23 -0000 Hi Charles. Recutils version 1.9 I inadvertently saved a recutils file as something,rec (something-comma-rec) After a few attempts to print the records using recsel on something-dot-rec, I realized that the file name contained a comma not a dot. So I called recsel on something-comma-rec and the records in the file were printed out. I tried a couple of other operations such as recfix , and no errors. I would expect an error message such as "Invalid recutils file." This a bug or is there some deep dark secret concerning naming conventions? After all, the manual uses "dot"rec (or "period"rec, if you prefer.) The name of the file is irrelevant to recutils. The utilities will just read and process the file you provide, without looking at the file extension... From MAILER-DAEMON Tue Jun 30 07:06:56 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jqE6K-0002Tw-J9 for mharc-bug-recutils@gnu.org; Tue, 30 Jun 2020 07:06:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE6H-0002NY-04 for bug-recutils@gnu.org; Tue, 30 Jun 2020 07:06:53 -0400 Received: from de.cellform.com ([88.217.224.109]:47058 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqE6E-0006lE-Gm; Tue, 30 Jun 2020 07:06:52 -0400 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTPS id 05UB6Yt5028514 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 30 Jun 2020 13:06:34 +0200 Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id 05UB6YOX028513; Tue, 30 Jun 2020 13:06:34 +0200 Date: Tue, 30 Jun 2020 13:06:34 +0200 From: John Darrington To: "Jose E. Marchesi" Cc: Charles Millar , bug-recutils@gnu.org Subject: Re: apparently valid recutils file created when saved with comma Message-ID: <20200630110634.GA28451@jocasta.intra> References: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04.ref@verizon.net> <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> <871rlwyivf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <871rlwyivf.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=88.217.224.109; envelope-from=john@darrington.wattle.id.au; helo=jocasta.intra X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 07:06:35 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 11:06:53 -0000 On Tue, Jun 30, 2020 at 11:59:16AM +0200, Jose E. Marchesi wrote: =20 Hi Charles. =20 Recutils version 1.9 =20 I inadvertently saved a recutils file as something,rec (something-= comma-rec) =20 After a few attempts to print the records using recsel on something-dot-rec, I realized that the file name contained a comma= not a dot. =20 So I called recsel on something-comma-rec and the records in the f= ile were printed out. I tried a couple of other operations such as re= cfix , and no errors. =20 I would expect an error message such as "Invalid recutils file." =20 This a bug or is there some deep dark secret concerning naming conventions? After all, the manual uses "dot"rec (or "period"rec, = if you prefer.) =20 The name of the file is irrelevant to recutils. The utilities will just read and process the file you provide, without looking at the file extension... I think Charles is complaining about the lack of a warning message when recfix is passed the name of a non-existent file. I think you fixed this bug a few days ago. J' From MAILER-DAEMON Tue Jun 30 07:47:22 2020 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jqEjS-0003tm-9X for mharc-bug-recutils@gnu.org; Tue, 30 Jun 2020 07:47:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqEjP-0003sz-T9 for bug-recutils@gnu.org; Tue, 30 Jun 2020 07:47:19 -0400 Received: from sonic311-23.consmr.mail.gq1.yahoo.com ([98.137.65.204]:32995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqEjN-00059U-Hl for bug-recutils@gnu.org; Tue, 30 Jun 2020 07:47:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1593517634; bh=7rGVmm286x+e7ShlSElgFVDV45tAm1V/+oLySKBcSwU=; h=Subject:References:To:From:Date:In-Reply-To:From:Subject; b=n96sg6aLDER2+IEohvlxbO14chDQp1YDr5U7PIImXaLMhplFonxMqF3BXLHgZso7Ven9LaVUvehDFgivdzmoKLBvbOt7uNcyzBHuKTE9vOwmw9X6tScoV+X9kYMEho6mMPBxYlJLH8jOTAFs9u0rvJAPhVpg6CbYmwNeiJZUhoospUgjzuGRa62M2/xHJuuXCzuKESlojwxlHGtsrwg7P4Hrp1fPvVndlYv7VcWwo3TWJMOvyAFFHfHCJI+I+dfShALT5bFALhqTEejuG9BnmlPW5JSiWY7eIkniKFhuzBJAWJjOJfxpqJ6DCQzr0YKtyojHuheXHCn76y0nmZ3eJw== X-YMail-OSG: fpYhPkgVM1kVPsmDzDfUCkcT.1SnKsSysT1hEBHPAcVUqWTz85ZZNYw4GanBJcn OAOju_stUMxgupJ_TbeDanoPqY5REsQJwkq.SA_onDRH7p51nbuamQuWw2pmkmTxeeAomv4awpsY vmsLGvgyD5Fx8laXtyLQhNv3isaKLM63Ur2N8MF.qNI0yNMsHUZY2vgKNttIezORLkzBV8dWQqtz fcQd9e.P8IBiH4cuS2R8K2eGOeUID7Jcirh84B5vLc0U_nDQN1BwTiAKvihAhlTjWj7Zol.23SWb 9831sdC6jclPAAA2jznIlGfB6j1YO6JYHoLd3u7pY_BhsttG.8kNfcq2lQOgqNR8Z6CDgh6uVA3_ xfgxLxSaGpAAiEDul4L1n14olKfPZ.NsHpU_YBVdnUeW8a4wp1GWpSY3qpS6A3V5d5f9Q4ySkL8g 4V4dK2UyuNT1RqUM_4NVBY5nc_MPCfF5dOmyrjIsDz2DkJAsAyjT4gBkJOGMW6VCkzrg0RHGBHS8 .d.A2yhjOW7GfVplQWMEb_ck9IjhNEWH3QO7icEwBVxlqSFF66P6E9zk.IR2D2mA71mChx9JqC44 N60R6p813om_kR_8BDBRr3lZfNV6WeQyqnaKEEWk2W6Wj1vIzU_XxK3ANrW2rFmdMwifSwi7qS7n jWPgwovDT_wFhHfl8FPwTsBEfOtgYzTDKYojxZvOYT4.nNcRSxW8sDjwPQL9OSgHwgFFh42vPl1N V0VIXa75U65eyUZat0G9idN.Nz4LJ1xVwjiq7wHIlmW7VMurKDg7TD5ygm8_LeDMJXX90ecFo64v DbdHbYQG7jSTHDJiSAb5WNIs4o.257WMCL4iL0r830YeolUNPh3HJeoVNwdcly_CID_rwDOqbmW7 XiOmGJSNOxaW8uNLGpZj_8XEPLGfVAAT5nUle4P_NFRMy.7RKJxQ7zBV4FDSQSqaTPKQHjMt706n u8OrFw4j8BWQluCqvgU6fCTQccUTJu44sNcDuS6CzLZLKy3bWchJe5ItF0wxqEkt_rrpOfig_l9B yPnGg9nfj_oLNC8q8hP_YJQgZrL91C7SGpqb0CVjXGqFiHpcIDZAk_Jl7zIVjrsgJZDZr0OixCAV LL2OCBoY5VHI.2iaLA7AI15yJL8JMxtcyCvsrCkNvdHhxRcuq418j4RhfB_j25Uul0E4118SR.PB IBNuM_yGJEDNRcHw27TPyPWA_pEVabR21.tAC5Cav3_BKpNAkoq3pz82PduIIi3d4F56lQE_DQGO BILbm_t75y8fJoD9aVgcFybe.a5XgbU6ShCOWk2CQWspefjeLSLBlf_kjmakB7TBk0LunHQ7.7vK y27Nfd.jBwGDPbT270hXH0AqjY88UBE7N9EvKcOHVNzKnYIru1apyZv1lfGLA6ra4F2..X_231H7 jpjR76Cq.42YC6.gSgcVxoRkLHB8aElaaaiRVefaFXg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 30 Jun 2020 11:47:14 +0000 Received: by smtp423.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a1cbf508b5b3e14532d1a460a22901a2; Tue, 30 Jun 2020 11:47:13 +0000 (UTC) Subject: Re: apparently valid recutils file created when saved with comma References: <2c6104d5-ed97-2c8f-fb33-39a5fb29da04.ref@verizon.net> <2c6104d5-ed97-2c8f-fb33-39a5fb29da04@verizon.net> <871rlwyivf.fsf@gnu.org> <20200630110634.GA28451@jocasta.intra> To: bug-recutils@gnu.org From: Charles Millar Message-ID: Date: Tue, 30 Jun 2020 07:47:11 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200630110634.GA28451@jocasta.intra> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.16197 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 1627 Received-SPF: pass client-ip=98.137.65.204; envelope-from=millarc@verizon.net; helo=sonic311-23.consmr.mail.gq1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/30 07:47:14 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-recutils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNU recutils development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2020 11:47:20 -0000 On 6/30/20 7:06 AM, John Darrington wrote: > On Tue, Jun 30, 2020 at 11:59:16AM +0200, Jose E. Marchesi wrote: > > Hi Charles. > > Recutils version 1.9 > > I inadvertently saved a recutils file as something,rec (something-comma-rec) > > After a few attempts to print the records using recsel on > something-dot-rec, I realized that the file name contained a comma not > a dot. > > So I called recsel on something-comma-rec and the records in the file > were printed out. I tried a couple of other operations such as recfix > , and no errors. > > I would expect an error message such as "Invalid recutils file." > > This a bug or is there some deep dark secret concerning naming > conventions? After all, the manual uses "dot"rec (or "period"rec, if > you prefer.) > > The name of the file is irrelevant to recutils. > The utilities will just read and process the file you provide, without > looking at the file extension... > > I think Charles is complaining about the lack of a warning message when > recfix is passed the name of a non-existent file. > > I think you fixed this bug a few days ago. > > J' > Thank you, both. I updated recutils from the repository and confirm that there is warning message when I pass a non-existent file. (I thought I had updated from the repository in the last couple of days, but apparently I did not.) Very interesting about the file extension. Charlie