Closed Xananax closed 3 years ago
Duplicate of #2360.
I had seen that other issue, but no one mentions parsing a markdown file and extracting env variables from there, so I'm thinking my issue might be two issues. Are you sure it's a duplicate?
I’m pretty confident - but I’ll reopen it just in case, and ping you when v0.7.2 is released.
I've gone ahead and reverted #2347, which will be released shortly as v0.7.2. Hopefully that solves the problem.
v0.7.2 is released. Please file a new issue if there's still problems.
Operating system and version:
Arch Linux
nvm debug
output:nvm ls
output:How did you install
nvm
?Using the Arch package
What it does is put the completion, binaries, and so on in the right place. You can see the script for it here
After that, I added
source /usr/share/nvm/init-nvm.sh
to my.zshrc
.This script is just:
What steps did you perform?
I updated the package
What happened?
When I open a terminal, I get:
This also happens on TTY, with no graphical server running at all.
If I open a terminal in specific directories (in this occurrence an Electron project), I get additional weirdness:
Of course, the sentence
is part of my
README.md
and describes the project's architecture.The string
forge.config.js
only exists in the README.md and as aconfig
key in `package.json.If I remove that sentence from the README, then nvm tells me this:
If I remove that, then I am back to the more "normal" error, which tells me
grep: <x>: Is a directory
.Removing only the line in
package.json
isn't sufficient, however, I have to remove it from the README.md too.So nvm is deciding on its own to... parse the README.md, extract some specific string for some reason, then eval it? Then decide that there's an environment variable equal to the whole line?
Notice the environment variable's name starts with
README.md: ...
but it's value is set to.md: ...
I can confirm these issues come from the interaction of nvm and zsh, because:
nvm.sh
, and/orbash
I don't get any of these lines.
Apart for these annoying notices, nvm is working as expected, as far as I can tell.
I posted this first in https://github.com/nvm-sh/nvm/issues/855
What did you expect to happen?
No output in my terminal
Is there anything in any of your profile files that modifies the
PATH
?I use Zimfw, but I otherwise don't do anything specific.