From a7aed06ebebd2668082808760c01afb565c64c1d Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Fri, 9 Oct 2026 20:14:19 +0200 Subject: [PATCH] Fix displaying elan installation path on Windows when invoking elan-init.exe and specify ELAN_HOME with value `c:\p\.elan` it display path like this `c:\p.elan`. I escape Unix variants just in case, since theoretically `\` in path is possible on these OSes. or maybe some other markup like `*code*` --- src/elan-cli/self_update.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/elan-cli/self_update.rs b/src/elan-cli/self_update.rs index cd63732..8b1260d 100644 --- a/src/elan-cli/self_update.rs +++ b/src/elan-cli/self_update.rs @@ -118,7 +118,7 @@ macro_rules! post_install_msg_unix { () => { r"# Elan is installed now. Great! -To get started you need Elan's bin directory ({elan_home}/bin) in your `PATH` +To get started you need Elan's bin directory (`{elan_home}/bin`) in your `PATH` environment variable. Next time you log in this will be done automatically. @@ -131,7 +131,7 @@ macro_rules! post_install_msg_win { () => { r"# Elan is installed now. Great! -To get started you need Elan's bin directory ({elan_home}\bin) in your `PATH` +To get started you need Elan's bin directory (`{elan_home}\bin`) in your `PATH` environment variable. Future applications will automatically have the correct environment, but you may need to restart your current shell. " @@ -142,7 +142,7 @@ macro_rules! post_install_msg_unix_no_modify_path { () => { r"# Elan is installed now. Great! -To get started you need Elan's bin directory ({elan_home}/bin) in your `PATH` +To get started you need Elan's bin directory (`{elan_home}/bin`) in your `PATH` environment variable. To configure your current shell run `source {elan_home}/env` @@ -154,7 +154,7 @@ macro_rules! post_install_msg_win_no_modify_path { () => { r"# Elan is installed now. Great! -To get started you need Elan's bin directory ({elan_home}\bin) in your `PATH` +To get started you need Elan's bin directory (`{elan_home}\bin`) in your `PATH` environment variable. This has not been done automatically. " };