kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

03-print-header-order.sh (593B)


      1 # Regression: `pv` (and `p` with multiple members) prints a per-member
      2 # header via driver_printf and the payload via the stdout writer. Both
      3 # must land in the right order — driver_stdout_writer routes through
      4 # stdio so it shares libc's buffer with printf.
      5 
      6 printf 'aaaa'         > a.o
      7 printf 'cccccccccccc' > c.o
      8 "$KIT" ar c lib.a a.o c.o
      9 
     10 echo "== p single (no header) =="
     11 "$KIT" ar p lib.a a.o
     12 echo
     13 
     14 echo "== pv single (header) =="
     15 "$KIT" ar pv lib.a a.o
     16 echo
     17 
     18 echo "== p multi (header) =="
     19 "$KIT" ar p lib.a a.o c.o
     20 echo
     21 
     22 echo "== pv multi (header) =="
     23 "$KIT" ar pv lib.a a.o c.o
     24 echo