Make wildcards beginning with dots not match . and ..

https://github.com/fish-shell/fish-shell/issues/270
This commit is contained in:
ridiculousfish
2012-10-15 18:16:47 -07:00
parent 3d5a3f03fa
commit 833abc27cc
5 changed files with 59 additions and 26 deletions

View File

@@ -512,7 +512,7 @@ bool contains_internal( const wchar_t *a, ... )
{
const wchar_t *arg;
va_list va;
int res = 0;
bool res = false;
CHECK( a, 0 );
@@ -521,7 +521,7 @@ bool contains_internal( const wchar_t *a, ... )
{
if( wcscmp( a,arg) == 0 )
{
res=1;
res = true;
break;
}