Sign in
◑
Theme
qemu
/
qemu
/
e41e23f7a72dadf052d4f18cd13ebcd6cd6427f1
/
.
/
tests
/
tcg
/
scripts
/
run_with_input.sh
blob: 3d280547c3aeb91d56748c5596041c744e26f765 [
file
]
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-or-later
set
-
euo pipefail
if
[
$
# -lt 2 ]; then
echo
"run_with_input: input_string cmd [args]..."
1
>&
2
exit
1
fi
input
=
"$1"
;
shift
set
-
x
echo
"$input"
|
"$@"