mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +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 *whole_path;
|
||||
|
||||
env_var_t path = env_get_string(L"CDPATH");
|
||||
if (path.missing())
|
||||
path = wd ? wd : L".";
|
||||
env_var_t path = L".";
|
||||
|
||||
nxt_path = path.c_str();
|
||||
path_cpy = wcsdup( path.c_str() );
|
||||
|
|
Loading…
Reference in a new issue