On 2021-6-27 12:21 am, Lars Kanis wrote:
> Hi Mohit,
> yes the current directory is always first in the search path for
> executables on WIndows. That can be surprising if you use to work on a
> Linux or Macos machine.
Yes, I'm aware of this since I'm basically a Windows user... the
stupidity on my part was to realise that I was in the HOME directory
much too late - so, after that, it was obvious what was happening.
> You should simply delete C:\Users\mohit\gem . It's probably left from
> some mistyping on the command line or so. I don't know of any ruby
> component that creates this file in the home directory. If the file is
> deleted a simple "gem list" should work and should list the installed
> gems of the Ruby version that is first in the PATH.
thanks! Just wanted some confirmation if this was intended. The rest is
OK, I already know it works since I have renamed it and tried running
stuff - and all looks normal. I will rename it for now permanently
before deleting it in a few weeks.
I have 0 byte gem, pik and java files in the folder.. and it's likely
that these showed up by mistake.
> In contrast the ".gem" directory and ".gemrc" are configuration files
> that store persistent information of rubygems. This can be rubygems.org
> credentials, gem sources, signature keys and the like.
Yes, I have a .gem folder there with the stuff as you mentioned.
Thanks for the confirmation. I will now watch the next time I do an
installation to see if this recurs and report back if that's the case.