Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/tools-platform regress/tools-platform: demonst...
details: https://anonhg.NetBSD.org/pkgsrc/rev/624291c31553
branches: trunk
changeset: 431269:624291c31553
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon May 11 03:10:46 2020 +0000
description:
regress/tools-platform: demonstrate bug in nbsed-20120308
diffstat:
regress/tools-platform/sed.test | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r a99a6f0be713 -r 624291c31553 regress/tools-platform/sed.test
--- a/regress/tools-platform/sed.test Mon May 11 01:18:30 2020 +0000
+++ b/regress/tools-platform/sed.test Mon May 11 03:10:46 2020 +0000
@@ -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 @@
"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