]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid recent syntax check failure
authorPádraig Brady <P@draigBrady.com>
Thu, 29 Dec 2022 14:14:11 +0000 (14:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 29 Dec 2022 14:15:54 +0000 (14:15 +0000)
* tests/cp/proc-short-read.sh: Adjust so shorter lines.

tests/cp/proc-short-read.sh

index 89dba8d3d290f0841bd80934a94551f8bac0b4aa..f93d79ad604d8e2c43305db8501a0ffbe7507e8c 100755 (executable)
@@ -28,8 +28,9 @@ cp $proc_large 1    || fail=1
 cat $proc_large > 2 || fail=1
 
 # adjust varying parts
-sed '/MHz/d; /[Bb][Oo][Gg][Oo][Mm][Ii][Pp][Ss]/d;' 1 > proc.cp || framework_failure_
-sed '/MHz/d; /[Bb][Oo][Gg][Oo][Mm][Ii][Pp][Ss]/d;' 2 > proc.cat || framework_failure_
+del_varying='/MHz/d; /[Bb][Oo][Gg][Oo][Mm][Ii][Pp][Ss]/d;'
+sed "$del_varying" 1 > proc.cp || framework_failure_
+sed "$del_varying" 2 > proc.cat || framework_failure_
 
 compare proc.cp proc.cat || fail=1