pasar stdin al comando que se ejecuta

Squashed commit of the following:

commit 415163092768b8ba3690a8d9d68615f9d764da64
Author: void <v@sutty.nl>
Date:   Sun May 16 16:44:01 2021 +0000

    pasar stdin al comando que se ejecuta

    fixes #5
This commit is contained in:
void 2021-06-01 15:42:32 +00:00
parent 1c70a27fa0
commit 2bee4b24f2

View file

@ -53,6 +53,7 @@ correr() {
--dev-bind /tmp /tmp \
--chdir "/Sutty/${PWD##*/}" \
/bin/sh -l -c "$1"
/bin/sh -l -c "$1" < "${stdin:-/dev/null}"
}
crear_entorno() {
@ -96,4 +97,4 @@ crear_entorno() {
}
crear_entorno
correr "${1:-sh}"
stdin=/dev/stdin correr "${1:-sh}"