1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix shell tab-completion PATH parsing.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-02-16 16:34:05 +01:00
parent d511bfb75b
commit 3bef590a0f

View file

@ -1804,7 +1804,7 @@ size_t do_complete(char*** completions_ptr,
char* path_input = path;
char* saved_ptr;
char* component;
while ( (component = strtok_r(path_input, " ", &saved_ptr)) )
while ( (component = strtok_r(path_input, ":", &saved_ptr)) )
{
if ( DIR* dir = opendir(component) )
{