mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 00:33:05 +08:00
Add dasc-dummy, the simpliest dasc implementation for testing
This commit is contained in:
parent
89517efc66
commit
005375582c
16
dasc-dummy
Executable file
16
dasc-dummy
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
req=$1 res=$2; shift 2
|
||||
|
||||
{
|
||||
while read line; do
|
||||
printf 'response: %s\n' "$line"
|
||||
done
|
||||
} <&$res &
|
||||
|
||||
child=$!
|
||||
|
||||
while read line; do
|
||||
printf '%s\n' "$line" >&$req
|
||||
done
|
||||
|
||||
kill $child
|
Loading…
Reference in New Issue
Block a user