Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
WindSoilder committed Jan 15, 2025
1 parent 202fdc1 commit d8131fe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lang-guide/chapters/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with

- (^cmd1 | ^cmd2; ^cmd3 | ^cmd4) | ^cmd5

It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stdout* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | ---------- |
| cmd1 | Piped | Terminal |
Expand All @@ -108,6 +110,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with

- (^cmd1 | ^cmd2; ^cmd3 | ^cmd4) e>| ^cmd5

It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | -------- |
| cmd1 | Piped | Terminal |
Expand All @@ -117,6 +121,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with

- (^cmd1 | ^cmd2; ^cmd3 | ^cmd4) o+e>| ^cmd5

It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stdout and stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | -------- |
| cmd1 | Piped | Terminal |
Expand Down Expand Up @@ -163,7 +169,7 @@ def custom-cmd [] {

The custom command stdio behavior is the same as the previous section.

In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4).
In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)`.

- custom-cmd

Expand All @@ -176,6 +182,8 @@ In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4

- custom-cmd | ^cmd5

It runs `custom-cmd` first, then pipes *stdout* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | ---------- |
| cmd1 | Piped | Terminal |
Expand All @@ -185,6 +193,8 @@ In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4

- custom-cmd e>| ^cmd5

It runs `custom-cmd` first, then pipes *stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | -------- |
| cmd1 | Piped | Terminal |
Expand All @@ -194,6 +204,8 @@ In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4

- custom-cmd o+e>| ^cmd5

It runs `custom-cmd` first, then pipes *stdout and stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.

| Command | Stdout | Stderr |
| ------- | -------- | -------- |
| cmd1 | Piped | Terminal |
Expand Down

0 comments on commit d8131fe

Please sign in to comment.