This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PROGRAMFILES variable is not set during openssh session


On Feb 15 01:20, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> >> > >> PROGRAMFILES variable is not set during openssh session.
> >> > >> This is very important for remote administrative tasks.
> >> > 
> >> > > OpenSSH 6.0p1 is due soon.  I asked to apply a patch upstream so that
> >> > > PROGRAMFILES is added back to the environment variables passed over
> >> > > to the child process.
> >> > 
> >> > Both of them? (on x86_64 systems, there's two relevant variables)
> >> 
> >> Argh.  Can of worms.  No, only the 32 bit variant for now.
> 
> > Oh, btw., 32 bit processes only see the 32 bit PROGRAMFILES variable
> > by default.  Which makes sense since PROGRAMFILES for 32 bit processes
> > is the same as PROGRAMFILES for 64 bit processes...
> 
> I can't say that I understood your reply, I'll just go into hiding thinking
> that you know what you doing >.>

A dangerous assumption... ;)

I think my reply was a bit on the strange side.  Let's use the source
instead.  If you start a 32 bit CMD on an English system you get this:

  ProgramFiles=C:\Program Files (x86)
  ProgramFiles(x86)=C:\Program Files (x86)

In the 64 bit CMD you get this:

  ProgramFiles=C:\Program Files
  ProgramFiles(x86)=C:\Program Files (x86)
    
So for a 32 bit process, the values of ProgramFiles and
ProgramFiles(x86) are identical.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]