Changes to make autosuggestion smarter about not suggesting commands that could never succeed.

This commit is contained in:
ridiculousfish
2012-02-16 00:24:27 -08:00
parent a92d9d442b
commit a08450bcb6
11 changed files with 536 additions and 255 deletions

View File

@@ -191,6 +191,12 @@ int waccess(const wchar_t *file_name, int mode)
return access(tmp.c_str(), mode);
}
int wunlink(const wchar_t *file_name)
{
cstring tmp = wcs2string(file_name);
return unlink(tmp.c_str());
}
void wperror(const wchar_t *s)
{
int e = errno;