Re: "cmd.exe /c echo '%ProgramFiles%' returned empty string

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

 



Martin Gregorie wrote:
> On Thu, 2011-11-10 at 22:35 -0600, dimesio wrote:
> 
> > dE_logics wrote:
> > 
> > > Nothing will happen (and nothing happened), winetricks is only available in the current directory, so it says command not found.
> > > 
> > > 
> > 
> > How did you get winetricks? I've never used ./ in front of it, and it executes just fine for me.
> > 
> > 
> Some distros (the RedHat ones and probably others) don't include '.' or
> $HOME in $PATH by default. The first thing I do when I set up a new
> login users is to make sure '.', $HOME and $HOME/bin are added to $PATH,
> preferably at the right end. Its such an automatic action that its easy
> to forget you did it years ago.
> 
> To dE_logics:
> 
> It sounds like your $HOME directory isn't in your search path. Post the
> output from this:
> 
> <code>
> echo $PATH
> </code>
> 
> So we can see what your search path looks like.
> 
> 
> Martin


Having '.' and $HOME in $PATH can lead to subtle failures,
if you create a file that has the same name as an existing command.

Simple example: the updatedb command from mlocate







[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux