hare

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

commit b5bf55fa460ea8e57ad18a93603d906266baa540
parent 2f4bde9b99abd2bedeebaf01989a9abb1e58d158
Author: Mohammed Anas <triallax@tutanota.com>
Date:   Mon,  1 Jan 2024 22:56:05 +0000

cmd/haredoc: close read end of pipe after passing it to command

Signed-off-by: Mohammed Anas <triallax@tutanota.com>

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

diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha @@ -328,6 +328,7 @@ fn init_tty(ctx: *doc::context) io::handle = { }; const pipe = exec::pipe(); + defer io::close(pipe.0)!; exec::addfile(&pager, os::stdin_file, pipe.0); // Get raw flag in if possible exec::setenv(&pager, "LESS", os::tryenv("LESS", "FRX"))!;