Skip to content

Commit d8131fe

Browse files
committed
update example
1 parent 202fdc1 commit d8131fe

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lang-guide/chapters/pipelines.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with
9999

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

102+
It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stdout* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
103+
102104
| Command | Stdout | Stderr |
103105
| ------- | -------- | ---------- |
104106
| cmd1 | Piped | Terminal |
@@ -108,6 +110,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with
108110

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

113+
It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
114+
111115
| Command | Stdout | Stderr |
112116
| ------- | -------- | -------- |
113117
| cmd1 | Piped | Terminal |
@@ -117,6 +121,8 @@ Pipeline and redirection behavior can be hard to follow when they are used with
117121

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

124+
It runs `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4)` first, then pipes *stdout and stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
125+
120126
| Command | Stdout | Stderr |
121127
| ------- | -------- | -------- |
122128
| cmd1 | Piped | Terminal |
@@ -163,7 +169,7 @@ def custom-cmd [] {
163169

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

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

168174
- custom-cmd
169175

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

177183
- custom-cmd | ^cmd5
178184

185+
It runs `custom-cmd` first, then pipes *stdout* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
186+
179187
| Command | Stdout | Stderr |
180188
| ------- | -------- | ---------- |
181189
| cmd1 | Piped | Terminal |
@@ -185,6 +193,8 @@ In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4
185193

186194
- custom-cmd e>| ^cmd5
187195

196+
It runs `custom-cmd` first, then pipes *stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
197+
188198
| Command | Stdout | Stderr |
189199
| ------- | -------- | -------- |
190200
| cmd1 | Piped | Terminal |
@@ -194,6 +204,8 @@ In the examples below the body of `custom-cmd` is `(^cmd1 | ^cmd2; ^cmd3 | ^cmd4
194204

195205
- custom-cmd o+e>| ^cmd5
196206

207+
It runs `custom-cmd` first, then pipes *stdout and stderr* to `^cmd5`, where both stdout and stderr are directed to the Terminal.
208+
197209
| Command | Stdout | Stderr |
198210
| ------- | -------- | -------- |
199211
| cmd1 | Piped | Terminal |

0 commit comments

Comments
 (0)