Commit 2099599e authored by Vitaly Lipatov's avatar Vitaly Lipatov

estrlist: add support for input from stdio (with - as the first arg)

parent 526ef3d2
......@@ -143,4 +143,9 @@ if [ "$COMMAND" = "-h" ] || [ "$COMMAND" = "--help" ] ; then
fi
shift
"$COMMAND" "$@"
if [ "$1" = "-" ] ; then
shift
"$COMMAND" "$(cat)"
else
"$COMMAND" "$@"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment