aboutsummaryrefslogtreecommitdiffstats
path: root/src/run/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/run/mod.rs')
-rw-r--r--src/run/mod.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs
index b3ed851..52d3925 100644
--- a/src/run/mod.rs
+++ b/src/run/mod.rs
@@ -529,12 +529,17 @@ impl parse::Expander for Executor {
.lock()
.unwrap()
.aliases
- .get(cmd, older_than.unwrap_or(AliasAge::MAX)))
+ .get(cmd, older_than.unwrap_or(AliasAge::MAX))
+ .map(|(age, body)| (age, body.parsed)))
}
}
type AliasAge = u32;
-type AliasBody = Vec<ExpString>;
+#[derive(Clone)]
+pub struct AliasBody {
+ pub unparsed: BString,
+ pub parsed: Vec<ExpString>,
+}
type AliasSet = Vec<(AliasAge, AliasBody)>;
pub struct Aliases {