Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Enzo Cioppettini
ion
Commits
f5f0b1a2
Commit
f5f0b1a2
authored
7 years ago
by
Michael Aaron Murphy
Browse files
Options
Downloads
Plain Diff
Merge &| Conflicts
parents
3387390a
9d5cb19d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Cargo.lock
+10
-10
10 additions, 10 deletions
Cargo.lock
src/parser/pipelines.rs
+4
-0
4 additions, 0 deletions
src/parser/pipelines.rs
src/shell/pipe.rs
+248
-172
248 additions, 172 deletions
src/shell/pipe.rs
with
262 additions
and
182 deletions
Cargo.lock
+
10
−
10
View file @
f5f0b1a2
...
...
@@ -9,11 +9,11 @@ dependencies = [
"futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)",
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
"liner 0.3.
1
(registry+https://github.com/rust-lang/crates.io-index)",
"liner 0.3.
2
(registry+https://github.com/rust-lang/crates.io-index)",
"nix 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
"peg 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
"permutate 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.
19
(registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.
20
(registry+https://github.com/rust-lang/crates.io-index)",
"smallstring 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"smallvec 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-core 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
...
...
@@ -65,7 +65,7 @@ dependencies = [
[[package]]
name = "cfg-if"
version = "0.1.
1
"
version = "0.1.
2
"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
...
...
@@ -113,7 +113,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "liner"
version = "0.3.
1
"
version = "0.3.
2
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"termion 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
...
...
@@ -166,7 +166,7 @@ name = "net2"
version = "0.2.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cfg-if 0.1.
1
(registry+https://github.com/rust-lang/crates.io-index)",
"cfg-if 0.1.
2
(registry+https://github.com/rust-lang/crates.io-index)",
"kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
...
...
@@ -179,7 +179,7 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cfg-if 0.1.
1
(registry+https://github.com/rust-lang/crates.io-index)",
"cfg-if 0.1.
2
(registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
"void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
...
...
@@ -213,7 +213,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "redox_syscall"
version = "0.1.
19
"
version = "0.1.
20
"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
...
...
@@ -359,7 +359,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5"
"checksum byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c40977b0ee6b9885c9013cd41d9feffdd22deb3bb4dc3a71d901cc7a77de18c8"
"checksum bytes 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8b24f16593f445422331a5eed46b72f7f171f910fead4f2ea8f17e727e9c5c14"
"checksum cfg-if 0.1.
1
(registry+https://github.com/rust-lang/crates.io-index)" = "d
0c47d456a36ebf0536a6705c83c1cbbcb9255fbc1d905a6ded104f479268a29
"
"checksum cfg-if 0.1.
2
(registry+https://github.com/rust-lang/crates.io-index)" = "d
4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de
"
"checksum fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "6cc484842f1e2884faf56f529f960cc12ad8c71ce96cc7abba0a067c98fee344"
"checksum futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "4b63a4792d4f8f686defe3b39b92127fea6344de5d38202b2ee5a11bbbf29d6a"
"checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb"
...
...
@@ -367,7 +367,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
"checksum lazycell 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce12306c4739d86ee97c23139f3a34ddf0387bbf181bc7929d287025a8c3ef6b"
"checksum libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)" = "38f5c2b18a287cf78b4097db62e20f43cace381dc76ae5c0a3073067f78b7ddc"
"checksum liner 0.3.
1
(registry+https://github.com/rust-lang/crates.io-index)" = "
b671c4f2d2f7bfb49c4231220d51f14482adf31dca8c936a037b0a7d40b79d04
"
"checksum liner 0.3.
2
(registry+https://github.com/rust-lang/crates.io-index)" = "
1f5c044840b473e0c1a29a05a3b82beeadb688f9cfdaadc31955a5dc90149a39
"
"checksum log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b"
"checksum mio 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9e965267d4d58496fc4f740e9861118367f13570cadf66316ed2c3f2f14d87c7"
"checksum mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1731a873077147b626d89cc6c2a0db6288d607496c5d10c0cfcf3adc697ec673"
...
...
@@ -378,7 +378,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum peg 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "36a474cba42744afe0f223e9d4263594b3387f172e512259c72d2011e477c4fb"
"checksum permutate 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "53b7d5b19a715ffab38693a9dd44b067fdfa2b18eef65bd93562dfe507022fae"
"checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a"
"checksum redox_syscall 0.1.
19
(registry+https://github.com/rust-lang/crates.io-index)" = "
e4a357d14a12e90a37d658725df0e6468504750b5948b9710f83f94a0c5818e8
"
"checksum redox_syscall 0.1.
20
(registry+https://github.com/rust-lang/crates.io-index)" = "
1eb6b797b89e9c92681e837851e906e9788c748391deaba7f5b66f264e390249
"
"checksum scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f417c22df063e9450888a7561788e9bd46d3bb3c1466435b4eccb903807f147d"
"checksum shell32-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "72f20b8f3c060374edb8046591ba28f62448c369ccbdc7b02075103fb3a9e38d"
"checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23"
...
...
This diff is collapsed.
Click to expand it.
src/parser/pipelines.rs
+
4
−
0
View file @
f5f0b1a2
...
...
@@ -188,6 +188,10 @@ pub fn collect(possible_error: &mut Option<&str>, args: &str) -> Pipeline {
let
_
=
args_iter
.next
();
redir_found!
(
RedirMode
::
Stdout
(
RedirectFrom
::
Both
));
},
Some
(
&
b'|'
)
=>
{
let
_
=
args_iter
.next
();
job_found!
(
RedirectFrom
::
Both
,
true
);
},
_
=>
job_found!
(
RedirectFrom
::
Stdout
,
false
)
}
},
...
...
This diff is collapsed.
Click to expand it.
src/shell/pipe.rs
+
248
−
172
View file @
f5f0b1a2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment