pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/regress/tools-platform



Module Name:    pkgsrc
Committed By:   rillig
Date:           Mon May 11 03:10:46 UTC 2020

Modified Files:
        pkgsrc/regress/tools-platform: sed.test

Log Message:
regress/tools-platform: demonstrate bug in nbsed-20120308


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/regress/tools-platform/sed.test

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/regress/tools-platform/sed.test
diff -u pkgsrc/regress/tools-platform/sed.test:1.1 pkgsrc/regress/tools-platform/sed.test:1.2
--- pkgsrc/regress/tools-platform/sed.test:1.1  Sat May  2 07:24:32 2020
+++ pkgsrc/regress/tools-platform/sed.test      Mon May 11 03:10:46 2020
@@ -1,8 +1,8 @@
 #! /bin/sh
-# $NetBSD: sed.test,v 1.1 2020/05/02 07:24:32 rillig Exp $
+# $NetBSD: sed.test,v 1.2 2020/05/11 03:10:46 rillig Exp $
 #
 
-set -e
+set -eu
 
 mydir=`dirname "$0"`
 . "${mydir}/tests.subr"
@@ -37,3 +37,10 @@ sed_test "[[:character classes:]]" \
        "hello${nl}foo bar" \
        "hello" \
        -e "/[[:space:]]/d"
+
+
+# nbsed-20120308 from textproc/nbsed does not add a newline here.
+sed_test 'adding a line' \
+       '1'"$nl"'2'"$nl"'3'"$nl"'4' \
+       '1'"$nl"'2'"$nl"'between 2 and 3'"$nl"'3'"$nl"'4' \
+       -e '/2/a\'"$nl"'between 2 and 3'



Home | Main Index | Thread Index | Old Index