We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d1938 commit 320d7fcCopy full SHA for 320d7fc
src/exec/mod.rs
@@ -170,13 +170,15 @@ impl CommandTemplate {
170
cmd.stdout(Stdio::inherit());
171
cmd.stderr(Stdio::inherit());
172
173
- let mut paths = paths.map(|p| Self::prepare_path(&p));
+ let mut paths: Vec<String> = paths.map(|p| Self::prepare_path(&p)).collect();
174
let mut has_path = false;
175
176
for arg in &self.args[1..] {
177
if arg.has_tokens() {
178
+ paths.sort();
179
+
180
// A single `Tokens` is expected
- // So we can directy consume the iterator once and for all
181
+ // So we can directly consume the iterator once and for all
182
for path in &mut paths {
183
cmd.arg(arg.generate(&path).as_ref());
184
has_path = true;
0 commit comments