0001-echo.sh - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) 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