hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit c3c36319383f1ff85789bc494cf328bea5e38630
parent 115fe35ac23374a4d067b808f6b9b600f05587da
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 22 Nov 2021 10:10:36 +0100

haredoc: prefer os::exec::pipe over unix::pipe

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/haredoc/main.ha | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha @@ -11,7 +11,6 @@ use os; use os::exec; use path; use strings; -use unix; use unix::tty; type format = enum { @@ -224,7 +223,7 @@ fn init_tty(ctx: *context) io::handle = { }; }; - const pipe = unix::pipe()!; + const pipe = exec::pipe(); exec::addfile(&pager, pipe.0, os::stdin_file); exec::setenv(&pager, "LESS", "FRX"); ctx.pager = exec::start(&pager)!;