mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Setting cdpath to current directory in path.cpp.
This commit is contained in:
parent
2da8df6202
commit
8c0803e3c5
1 changed files with 1 additions and 3 deletions
4
path.cpp
4
path.cpp
|
@ -370,9 +370,7 @@ wchar_t *path_allocate_cdpath( const wchar_t *dir, const wchar_t *wd )
|
||||||
wchar_t *state;
|
wchar_t *state;
|
||||||
wchar_t *whole_path;
|
wchar_t *whole_path;
|
||||||
|
|
||||||
env_var_t path = env_get_string(L"CDPATH");
|
env_var_t path = L".";
|
||||||
if (path.missing())
|
|
||||||
path = wd ? wd : L".";
|
|
||||||
|
|
||||||
nxt_path = path.c_str();
|
nxt_path = path.c_str();
|
||||||
path_cpy = wcsdup( path.c_str() );
|
path_cpy = wcsdup( path.c_str() );
|
||||||
|
|
Loading…
Reference in a new issue