Re: [netmod] Benjamin Kaduk's Discuss on draft-ietf-netmod-artwork-folding-11: (with DISCUSS and COMMENT)

Kent Watsen <kent@watsen.net> Tue, 21 January 2020 01:05 UTC

Return-Path: <0100016fc5a2305d-ea9d8ddb-cbb4-43dd-a784-312903f199c0-000000@amazonses.watsen.net>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5EB56120835; Mon, 20 Jan 2020 17:05:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87p70Qpqn8RZ; Mon, 20 Jan 2020 17:05:41 -0800 (PST)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6F0F120801; Mon, 20 Jan 2020 17:05:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1579568739; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=dTt7RGJb2QReGf8wS/iur8pd/gVHS9YRv4Pp1dfARFM=; b=bNq2MZ+ucCQk4kvVRuzoPQNtivnV/BAnRWF8Hub05iyuivnh4OlEX2D/t+Ml5kU7 13sHOIghlYDlr4BWHBM2SGDFV2yLjQIARecG7RK3x094vhI4EaioWtu0Rqyu52hgsDo SmBydMIMuj5KfN1la4k8KOTKfQjLnKY6spis+WPg=
From: Kent Watsen <kent@watsen.net>
Message-ID: <0100016fc5a2305d-ea9d8ddb-cbb4-43dd-a784-312903f199c0-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_76749EF8-1604-4A76-8B9F-C59F2B8A161C"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 21 Jan 2020 01:05:38 +0000
In-Reply-To: <597a69b9-a7ec-6b63-65e1-0c64d63574f5@unix-ag.uni-kl.de>
Cc: The IESG <iesg@ietf.org>, "netmod-chairs@ietf.org" <netmod-chairs@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, draft-ietf-netmod-artwork-folding@ietf.org
To: Benjamin Kaduk <kaduk@mit.edu>
References: <157861251031.11821.9719140738474484600.idtracker@ietfa.amsl.com> <597a69b9-a7ec-6b63-65e1-0c64d63574f5@unix-ag.uni-kl.de>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.01.21-54.240.8.88
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/uNbe3CLnHKXNuivecymVmUBSiFc>
Subject: Re: [netmod] Benjamin Kaduk's Discuss on draft-ietf-netmod-artwork-folding-11: (with DISCUSS and COMMENT)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jan 2020 01:05:46 -0000

Hi Ben,

Erik and I addressed the regression issue raised below, and made a few other minor improvements to the non-normative `rfcfold` script.

Here is a direct link to the diff: https://tools.ietf.org/rfcdiff?url2=draft-ietf-netmod-artwork-folding-12.txt <https://tools.ietf.org/rfcdiff?url2=draft-ietf-netmod-artwork-folding-12.txt>

Please let us know if there are anymore improvements to be made.

Thanks!
Kent (and Erik)



> On Jan 11, 2020, at 9:24 AM, Erik Auerswald <auerswal@unix-ag.uni-kl.de> wrote:
> 
> Hello Benjamin,
> 
> On 10.01.20 00:28, Benjamin Kaduk via Datatracker wrote:
>> Benjamin Kaduk has entered the following ballot position for
>> draft-ietf-netmod-artwork-folding-11: Discuss
>> When responding, please keep the subject line intact and reply to all
>> email addresses included in the To and CC lines. (Feel free to cut this
>> introductory paragraph, however.)
>> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
>> for more information about IESG DISCUSS and COMMENT positions.
>> The document, along with other ballot positions, can be found here:
>> https://datatracker.ietf.org/doc/draft-ietf-netmod-artwork-folding/
>> ----------------------------------------------------------------------
>> DISCUSS:
>> ----------------------------------------------------------------------
>> Thank you for the updates in the -10 and -11; the content looks a lot better and
>> I am not uncomfortable about publishing as Informational (vs. BCP)!
> 
> Thanks for the review. :-)
> 
>> That said, I think the edits to the script have introduced a regression:
>>      # ensure input file doesn't contain the fold-sequence already
>>      if [[ -n "$("$SED" -n '/\\$/{N;s/\\\n[ ]*\\/&/p}' "$infile")" ]]
>> Unfortunately, I'm not sure this gets all cases, since the 'N' command
>> reads a line and prevents it from being considered as the first half of the
>> wrapped sequence:
>> kaduk$:~/git/openssl$ cat /tmp/a
>> this is a line\
>> another line\
>> \that wraps
>> kaduk$:~/git/openssl$ cat /tmp/b
>> this is a line
>> another line\
>> \that wraps
>> kaduk$:~/git/openssl$ sed -n '/\\$/{N;s/\\\n[ ]*\\/&/p}' < /tmp/a
>> kaduk$:~/git/openssl$ sed -n '/\\$/{N;s/\\\n[ ]*\\/&/p}' < /tmp/b
>> another line\
>> \that wraps
> 
> Thanks for the bug report complete with test cases and analysis. :-)
> The fix should be adding ";D" to the sed script:
> 
>    sed -n '/\\$/{N;s/\\\n[ ]*\\/&/p;D}'
> 
> I'll look into adding this (with tests) soon.
> 
>> ----------------------------------------------------------------------
>> COMMENT:
>> ----------------------------------------------------------------------
>> A few other comments from reviewing the version of the script in the -11:
>> When processing input, it's perhaps more robust to check $# before assigning $2
>> to a named parameter.
> 
> That sounds reasonable.
> 
>>      printf "Exit status code: 1 on error, 0 on success, 255 on no-op."
>> Interesting to have no newline here but two on the next line's printf, but I
>> guess it might be at the column limit already.
> 
> Exactly.
> 
>> (The quotes on 'Error'/'Warning'/'Debug' in err()/warn()/dbg() are noops.)
> 
> They improve syntax-highlighting results in vim. ;-)
> 
>>    # warn if a non-GNU sed utility is used
>>    "$SED" --version < /dev/null 2> /dev/null \
>>    | grep GNU > /dev/null 2>&1 || \
>> `grep -q` should be usable instead of `grep >/dev/null`
> 
> I intend to change this to use `grep -q`.
> 
> Thanks,
> Erik
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod