diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-03-08 02:37:38 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-03-08 02:37:38 -0500 |
commit | 1abb97cca69e0b513f7499cc7db03ba622b38711 (patch) | |
tree | 6e59e0e7e4bfe9b00c735feb40c2286b3e0955c7 /src/parse/test_ast.rs | |
parent | d66f4773bccaee61c1c998640dcdb048223f8900 (diff) | |
download | nbsh-1abb97cca69e0b513f7499cc7db03ba622b38711.tar.gz nbsh-1abb97cca69e0b513f7499cc7db03ba622b38711.zip |
use /proc/self/exe directly when re-execing ourself when possible
this will use the same binary that is currently running, even if it has
been deleted or replaced
Diffstat (limited to 'src/parse/test_ast.rs')
-rw-r--r-- | src/parse/test_ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() |