[Top][All Lists]

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

Re: expand_wild different behaviour on NT & cygwin

From: Jim Hyslop
Subject: Re: expand_wild different behaviour on NT & cygwin
Date: Wed, 27 Jul 2005 12:01:51 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Larry Jones wrote:
Jim Hyslop writes:

If you call expand_wild() and pass it "." as an argument, the Visual Studio version converts it to the current directory name (i.e. if the current directory is c:\some_path\directory\, "." becomes "directory"). Under cygwin, it remains as "."

I believe the difference is intentional.  As I understand it, "." works
as CVS expects under cygwin but it does not work as CVS expects in
native Windows, so the translation was necessary.

Do you recall any other context for that translation? Which command, for example, caused the problem?

The current behaviour is causing odd problems with the command "cvs watch add ." With the Visual Studio build (which translates "." to "directory") you get a very strange entry in fileattr:

Fdirectory      _watchers=(..etc..)

instead of

D       _watchers=(...etc...)

In my working directory, I've modified the Windows version of expand_wild to leave "." alone, and now the watch behaves properly. I think it's important for expand_wild to have the same behaviour on both platforms.


reply via email to

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