summaryrefslogtreecommitdiff
path: root/src/cmd.zig
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 17:02:19 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 17:02:19 +0200
commit35a3b9ccfeb9dcd2c88c359108305b7f750622d6 (patch)
treeedb81a2398cf239741c5501a6135b35750054c03 /src/cmd.zig
parent63f7353b630c3eb5a6c60118418923b4b358e670 (diff)
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).
Diffstat (limited to 'src/cmd.zig')
-rw-r--r--src/cmd.zig6
1 files changed, 2 insertions, 4 deletions
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,