summaryrefslogtreecommitdiffstats
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/ast.rs4
-rw-r--r--src/parse/test_ast.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs
index 92c04ab..5bceed5 100644
--- a/src/parse/ast.rs
+++ b/src/parse/ast.rs
@@ -171,7 +171,7 @@ impl Exe {
return Self {
exe: Word {
parts: vec![WordPart::SingleQuoted(
- std::env::current_exe()
+ crate::info::current_exe()
.unwrap()
.to_str()
.unwrap()
@@ -370,7 +370,7 @@ impl WordPart {
Self::Alternation(_) => unreachable!(),
Self::Substitution(commands) => {
let mut cmd = tokio::process::Command::new(
- std::env::current_exe().unwrap(),
+ crate::info::current_exe().unwrap(),
);
cmd.args(&["-c", &commands]);
cmd.stdin(std::process::Stdio::inherit());
diff --git a/src/parse/test_ast.rs b/src/parse/test_ast.rs
index fb3a4e3..a1f83dd 100644
--- a/src/parse/test_ast.rs
+++ b/src/parse/test_ast.rs
@@ -216,7 +216,7 @@ fn test_basic() {
);
// XXX this parse may change in the future
- let exe = std::env::current_exe()
+ let exe = crate::info::current_exe()
.unwrap()
.into_os_string()
.into_string()