From b3e27a5df38cf3856676b29d8d906c2abc2c5f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 9 Oct 2018 18:31:17 +0200 Subject: Go: make the `system` command more useful Connect standard streams. --- ell/ell.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ell/ell.go b/ell/ell.go index 9c04b2e..84d1bc3 100644 --- a/ell/ell.go +++ b/ell/ell.go @@ -958,6 +958,9 @@ func fnSystem(ell *Ell, args *V, result **V) bool { } cmd := exec.Command(argv[0], argv[1:]...) + cmd.Stdin = os.Stdin + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr // Approximation of system(3) return value to match C ell at least a bit. if err := cmd.Run(); err == nil { -- cgit v1.2.3