ubuntu-buildroot/output/build/host-gawk-5.2.0/test/rtlen01.sh

9 lines
265 B
Bash
Executable File

#! /bin/sh
AWK=${AWK:-../gawk}
$AWK 'BEGIN {printf "0"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}'
$AWK 'BEGIN {printf "0\n"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}'
$AWK 'BEGIN {printf "0\n\n"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}'