bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU diff -x on win does exclude patterns with back slash (\) or slas


From: Eli Zaretskii
Subject: Re: GNU diff -x on win does exclude patterns with back slash (\) or slash (/)
Date: Tue, 03 Jul 2007 22:51:01 +0300

> Date: Tue, 3 Jul 2007 09:30:12 +0300
> From: "Yuval Zaltz" <address@hidden>
> 
> Using 2.7-cygwin-990830 on Win XP SP2
> having problems running a directory comparison with excluded paths if
> the exclude path involves using back slash
> for example if i run
> diff -u -q -r -x foo.c <src path> <dest path>
> (foo.c is missing from the sub-folder bar that is under dest)
> foo.c get excluded
> but if I run
> diff -u -q -r -x bar\diff.c  <src path> <dest path>
> foo.c does not get excluded
> I've also tried \\ and / and \/ with no success

This is how Diff is supposed to work (on all platforms, not only on
Windows).  The manual says:


    `-x PATTERN'
    `--exclude=PATTERN'
         When comparing directories, ignore files and subdirectories whose
         basenames match PATTERN.

Note that word ``basename''.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]