Revision 709d32705bab88734a47368a675678ae58f6d26d authored by Andrea Censi on 25 February 2019, 22:59:06 UTC, committed by Andrea Censi on 25 February 2019, 22:59:06 UTC
1 parent d00061b
try.sh
#!/bin/bash
PIPE=/tmp/catpipe
trap "rm -f $PIPE" exit 1
[[ ! -p $PIPE ]] && mkfifo $PIPE
while true; do
while read line; do
case "$line" in
@exit) rm -f $PIPE && exit 0;;
@*) eval "${line#@}" ;;
* ) echo "$line" ;;
esac
done <$PIPE
done
exit 2
Computing file changes ...