From 35a3b9ccfeb9dcd2c88c359108305b7f750622d6 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 14 Aug 2025 17:02:19 +0200 Subject: Add pipe handling. It is still buggy when combined with redirections, but it is a start (and I do not know whether combining pipes with redirections is supported by COMMAND.COM in the first place and what the semantics are if so). --- src/cmd.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cmd.zig') diff --git a/src/cmd.zig b/src/cmd.zig index 6fec627..7723e6b 100644 --- a/src/cmd.zig +++ b/src/cmd.zig @@ -28,6 +28,7 @@ const Sort = @import("cmd/sort.zig").Sort; const Move = @import("cmd/move.zig").Move; const External = @import("cmd/external.zig").External; const RedirectCommand = @import("cmd/redirect.zig").RedirectCommand; +const PipeCommand = @import("cmd/pipe.zig").PipeCommand; pub const BuiltinCommand = union(enum) { // File-oriented @@ -149,10 +150,7 @@ pub const BuiltinCommand = union(enum) { }; pub const Command = union(enum) { - Pipe: struct { - left: *Command, - right: *Command, - }, + Pipe: PipeCommand, Redirect: RedirectCommand, External: External, Builtin: BuiltinCommand, -- cgit v1.2.1