From: anton Date: Mon, 18 Sep 2023 18:33:17 +0000 (+0000) Subject: Favor jot while generating characters within the [1, 256) range as awk X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e88da610350a4ed03704a7115e0a79ce84dd8f40;p=openbsd Favor jot while generating characters within the [1, 256) range as awk recently became utf-8 aware. ok millert@ --- diff --git a/regress/usr.bin/sed/sedtest.sh b/regress/usr.bin/sed/sedtest.sh index d8e1340af62..144fc80f5cd 100644 --- a/regress/usr.bin/sed/sedtest.sh +++ b/regress/usr.bin/sed/sedtest.sh @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: sedtest.sh,v 1.8 2018/12/07 15:30:31 schwarze Exp $ +# $OpenBSD: sedtest.sh,v 1.9 2023/09/18 18:33:17 anton Exp $ # # Copyright (c) 1992 Diomidis Spinellis. # Copyright (c) 1992, 1993 @@ -359,8 +359,7 @@ p test_print() { echo Testing print and file routines - awk 'END {for (i = 1; i < 256; i++) printf("%c", i);print "\n"}' \ - lines3 + { jot -c -s '' 255 1; printf '\n'; } >lines3 # GNU and SunOS sed behave differently here mark '7.1' $SED -n l lines3