sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

0001-echo.sh (203B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 tmp=tmp1.$$
      6 
      7 trap 'rm -f $tmp' EXIT
      8 trap 'rm -f $tmp; kill -KILL $$' HUP INT TERM
      9 
     10 ../echo -n --hello-- --world--! > $tmp
     11 
     12 tr -d '\n' <<'EOF' | diff -u - $tmp
     13 --hello-- --world--!
     14 EOF