You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue came up while I was debugging an issue over on starship/starship#3526. When %USERPROFILE% is set to a non-null, invalid home directory, directories_next, but not dirs_next, fails to provide the correct home directory. This behaviour is consistent across dirs, dirs_next, directories and directories_next. What's strange is that directories and directories_next succeed when %USERPROFILE% is set to null, or a valid home directory that does not belong to the user (such as C:\Users\Default). They also seem to succeed when I set USERPROFILE using std::env::set_var, which is truly strange.
Here is the script I used to test the behaviour of dirs_next, directories_next, etc.
This issue came up while I was debugging an issue over on starship/starship#3526. When
%USERPROFILE%
is set to a non-null, invalid home directory,directories_next
, but notdirs_next
, fails to provide the correct home directory. This behaviour is consistent acrossdirs
,dirs_next
,directories
anddirectories_next
. What's strange is thatdirectories
anddirectories_next
succeed when%USERPROFILE%
is set to null, or a valid home directory that does not belong to the user (such asC:\Users\Default
). They also seem to succeed when I setUSERPROFILE
usingstd::env::set_var
, which is truly strange.Here is the script I used to test the behaviour of
dirs_next
,directories_next
, etc.cargo.toml
The text was updated successfully, but these errors were encountered: