1#!/bin/sh - 2# 3# Copyright (c) 1992 Diomidis Spinellis. 4# Copyright (c) 1992, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30# 31# @(#)sed.test 8.1 (Berkeley) 6/6/93 32# |
33# $FreeBSD: head/tools/regression/usr.bin/sed/multitest.t 192733 2009-05-25 06:58:42Z brian $ |
34# 35 36# sed Regression Tests 37# 38# The directory regress.test.out contains the expected test results 39# 40# These are the regression tests created during the development of the 41# BSD sed. The reference file naming scheme used in this script can't --- 133 unchanged lines hidden (view full) --- 175 mark '2.13' ; $SED -n '1,$p' lines1 lines2 176 mark '2.14' ; $SED -n '1,/l2_9/p' lines1 lines2 177 mark '2.15' ; $SED -n '/4/,$p' lines1 lines2 178 mark '2.16' ; $SED -n '/4/,20p' lines1 lines2 179 mark '2.17' ; $SED -n '/4/,/10/p' lines1 lines2 180 mark '2.18' ; $SED -n '/l2_3/,/l1_8/p' lines1 lines2 181 mark '2.19' ; $SED -n '12,3p' lines1 lines2 182 mark '2.20' ; $SED -n '/l1_7/,3p' lines1 lines2 |
183 mark '2.21' ; $SED -n '13,+4p' lines1 lines2 184 mark '2.22' ; $SED -n '/l1_6/,+2p' lines1 lines2 |
185} 186 187test_group() 188{ 189 COMMENT='Brace and other grouping' 190 mark '3.1' ; $SED -e ' 1914,12 { 192 s/^/^/ --- 283 unchanged lines hidden --- |