logo

utils-std

Collection of commonly available Unix tools
commit: 72cc61dc5265c4f9fafa5f78aa940ab35299a2fe
parent e05c649aa5a82674a7669fc8116af16b3e7b322d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 23 Apr 2024 19:57:29 +0200

test-cmd/truncate.t: Update regex for FreeBSD wc(1)

Diffstat:

Mtest-cmd/truncate.t38+++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/test-cmd/truncate.t b/test-cmd/truncate.t @@ -10,69 +10,69 @@ $ truncate -s 0 foo $ wc -c foo - 0\sfoo (re) + \s*0\sfoo (re) $ truncate -s 666 foo $ wc -c foo - 666\sfoo (re) + \s*666\sfoo (re) $ truncate -s 666K foo $ wc -c foo - 681984\sfoo (re) + \s*681984\sfoo (re) $ truncate -s 666KB foo $ wc -c foo - 666000\sfoo (re) + \s*666000\sfoo (re) $ truncate -s 666KiB foo $ wc -c foo - 681984\sfoo (re) + \s*681984\sfoo (re) $ truncate -s 1024 foo $ wc -c foo - 1024\sfoo (re) + \s*1024\sfoo (re) $ truncate -s -666 foo $ wc -c foo - 358\sfoo (re) + \s*358\sfoo (re) $ truncate -s 666 foo $ wc -c foo - 666\sfoo (re) + \s*666\sfoo (re) $ truncate -s -1024 foo $ wc -c foo - 0\sfoo (re) + \s*0\sfoo (re) $ truncate -s 666 foo $ wc -c foo - 666\sfoo (re) + \s*666\sfoo (re) $ truncate -s +666 foo $ wc -c foo - 1332\sfoo (re) + \s*1332\sfoo (re) $ truncate -s 15 foo $ wc -c foo - 15\sfoo (re) + \s*15\sfoo (re) $ truncate -s /10 foo $ wc -c foo - 10\sfoo (re) + \s*10\sfoo (re) $ truncate -s 15 foo $ wc -c foo - 15\sfoo (re) + \s*15\sfoo (re) $ truncate -s %10 foo $ wc -c foo - 20\sfoo (re) + \s*20\sfoo (re) $ truncate -s 15KB foo $ wc -c foo - 15000\sfoo (re) + \s*15000\sfoo (re) $ truncate -s /10KB foo $ wc -c foo - 10000\sfoo (re) + \s*10000\sfoo (re) $ truncate -s 15KB foo $ wc -c foo - 15000\sfoo (re) + \s*15000\sfoo (re) $ truncate -s %10KB foo $ wc -c foo - 20000\sfoo (re) + \s*20000\sfoo (re)