Skip to content

Commit

Permalink
Fix Aliasing Support (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed May 16, 2017
1 parent 75696df commit 5614d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ impl<'a> Shell<'a> {
let new_args = ArgumentSplitter::new(alias).map(String::from)
.chain(pipeline.jobs[job_no].args.drain().skip(1))
.collect::<SmallVec<[String; 4]>>();
pipeline.jobs[job_no].command = new_args[0].clone().into();
pipeline.jobs[job_no].args = new_args;
}
}
Expand Down

0 comments on commit 5614d77

Please sign in to comment.