summaryrefslogtreecommitdiff
path: root/rc/connect/commands/:get
blob: 288841e2bca14d9a19dad0de0b116dd8a8a558a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Get a value from a client.
#
# Example:
#
# :get -quoting shell %val{selections}
#
mkfifo connect.fifo
trap 'rm connect.fifo' EXIT
:send echo -to-file "$PWD/connect.fifo" "$@"
cat connect.fifo