cygcheck.exe: duplicate path and other entries when run from an SSH session

Corinna Vinschen corinna-cygwin@cygwin.com
Mon May 30 09:27:00 GMT 2016


On May 27 20:00, Alain Kalker wrote:
> When I run `cygcheck -s -v -r > cygcheck.out` when connecting via SSH, the
> resulting file shows a duplicate path entry as well as other duplicate
> entries.
> 
> Steps to reproduce:
> 
> - Locally in a Cygwin Terminal, run: `cygcheck -s -v -r > cygcheck1.out`
> - Connect via SSH to the machine with Cygwin installed: `ssh user@cygwinbox`
> - In the SSH session: run `cygcheck -s -v -r > cygcheck2.out`
> - Compare: `diff -u cygcheck{1,2}.out`
> 
> A snippet of the output from `diff -u cygcheck{1,2}.out` on my system:
> 
> --[snip]--
> --- cygcheck1.out       2016-05-27 19:52:12.442102521 +0200
> +++ cygcheck2.out       2016-05-27 19:52:12.525435198 +0200
> @@ -1,30 +1,24 @@
> 
>  Cygwin Configuration Diagnostics
> -Current System Time: Fri May 27 17:52:52 2016
> +Current System Time: Fri May 27 17:53:18 2016
> 
>  Windows 10 Home Ver 10.0 Build 10586
> 
>  Path:  C:\cygwin64\usr\local\bin
>         C:\cygwin64\bin
> +       C:\cygwin64\bin

In Cygwin, /bin and /usr/bin point to the same directory.  If you have
both in $PATH, they translate to the same Windows dir.

>         C:\WINDOWS\system32
>         C:\WINDOWS
>         C:\WINDOWS\System32\Wbem
>         C:\WINDOWS\System32\WindowsPowerShell\v1.0
> --[snip]--
> 
> As an aside: it would be nice if the list of environment variables in
> cygcheck output were sorted, this makes it easier to spot differences
> between runs.

Sure, why not.  Does somebody want to provide a patch?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160530/c3afb585/attachment.sig>


More information about the Cygwin mailing list