profile
viewpoint

EivindEE/SemFM 4

Semantic Web project

Amunds/Kvarteret-Mobile-Events 2

Listing of upcoming events for mobile devices using jQuery and jQTouch

Torthu/Kvarteret-App 2

Mobilapp for Det Akademiske Kvarter

snorremd/FeedJamReport 1

A repo for the latex report files

Torthu/omdb 1

A module to access OMDb API.

snorremd/skyport-penguins 0

A skyport repo for the Plastered Penguins team.

IssuesEvent

issue commentnvm-sh/nvm

ZSH: Getting strange `grep: x: Is a directory` in my terminal, as well as unexpected parsing of files

I’m pretty confident - but I’ll reopen it just in case, and ping you when v0.7.2 is released.

Xananax

comment created time in 2 minutes

issue commentnvm-sh/nvm

ZSH: Getting strange `grep: x: Is a directory` in my terminal, as well as unexpected parsing of files

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?

Xananax

comment created time in 2 hours

issue commentnvm-sh/nvm

nvm conflicts with zsh global alias

Per the posix standard, quotes and unquoted should be identical, but zsh isn’t posix complaint, sadly. Thanks for the PR! I’ll take a look tonight.

davidsierradz

comment created time in 3 hours

issue commentnvm-sh/nvm

nvm conflicts with zsh global alias

I'm facing this issue as well. I have some aliases defined as single-letters (defined by YADR) and I got a similar issue with v0.37.1. My issue was with the C on line 795.

https://github.com/nvm-sh/nvm/blob/6848c16d53c7f6730b81c7d46dcd831add6a392a/nvm.sh#L795

I think that using quotes should be a simple fix, so I created PR #2365.

davidsierradz

comment created time in 3 hours

PR opened nvm-sh/nvm

Fix error with zsh aliases in nvm_print_color_code

Hopefully fixes #2362

+16 -16

0 comment

1 changed file

pr created time in 3 hours

issue closednvm-sh/nvm

ZSH: Getting strange `grep: x: Is a directory` in my terminal, as well as unexpected parsing of files

Operating system and version:

Arch Linux

nvm debug output:

<details> <!-- do not delete the following blank line -->

nvm --version: v0.37.1
$SHELL: /usr/bin/zsh
$SHLVL: 3
whoami: 'xananax'
${HOME}: /home/xananax
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v12.18.4/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-pc-linux-gnu)'
uname -a: 'Linux 5.9.10-arch1-1 #1 SMP PREEMPT Sun, 22 Nov 2020 14:16:59 +0000 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Arch Linux  ()
curl: /usr/bin/curl, curl 7.73.0 (x86_64-pc-linux-gnu) libcurl/7.73.0 OpenSSL/1.1.1h zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
wget: /usr/bin/wget, GNU Wget 1.20.3 built on linux-gnu.
git: /usr/bin/git, git version 2.29.2
ls: cannot access 'grep:': No such file or directory
grep: grep: aliased to grep --color=auto (grep --color=auto), grep (GNU grep) 3.6
awk: /usr/bin/awk, GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.0)
sed: /usr/bin/sed, sed (GNU sed) 4.8
cut: /usr/bin/cut, cut (GNU coreutils) 8.32
basename: /usr/bin/basename, basename (GNU coreutils) 8.32
rm: /usr/bin/rm, rm (GNU coreutils) 8.32
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.32
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.7.0
nvm current: v12.18.4
which node: ${NVM_DIR}/versions/node/v12.18.4/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v12.18.4/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v12.18.4
npm root -g: ${NVM_DIR}/versions/node/v12.18.4/lib/node_modules

</details>

nvm ls output:

<details> <!-- do not delete the following blank line -->

->     v12.18.4
       v14.11.0
         system
default -> lts/* (-> v12.18.4)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v14.11.0) (default)
stable -> 14.11 (-> v14.11.0) (default)
lts/* -> lts/erbium (-> v12.18.4)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.22.1 (-> N/A)
lts/erbium -> v12.18.4

</details>

How did you install nvm?

<!-- (e.g. install script in readme, Homebrew) -->

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:

[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec

What steps did you perform?

I updated the package

What happened?

When I open a terminal, I get:

grep: Desktop: Is a directory
grep: Downloads: Is a directory
...etc

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:

grep: node_modules: Is a directory
grep: out: Is a directory
grep: src: Is a directory
grep: static: Is a directory 
(eval):1: command not found: forge.config.js
nvm is not compatible with the "README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)" environment variable: currently set to ".md:- [](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)"
Run `unset README.md:- [\`forge.config.js\`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)` to unset it.

Of course, the sentence

- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)

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 a config key in `package.json.

> grep -R "forge.config.js" --exclude-dir node_modules
package.json:    "forge": "./forge.config.js"
README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)

If I remove that sentence from the README, then nvm tells me this:

nvm is not compatible with the "package.json:    "forge": "./forge.config.js"" environment variable: currently set to ".json:    forge: ./forge.config.js"

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:

  • if I do not source nvm.sh, and/or
  • if I use bash

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?

<!-- (e.g. .bashrc, .bash_profile, .zshrc, etc) -->

I use Zimfw, but I otherwise don't do anything specific.

closed time in 4 hours

Xananax

delete branch cheeriojs/cheerio

delete branch : dependabot/npm_and_yarn/types/node-14.14.10

delete time in 4 hours

push eventcheeriojs/cheerio

dependabot[bot]

commit sha 46ed9d42d183f053ab36874a16e6cd88dcd4163a

Bump @types/node from 14.14.9 to 14.14.10 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.9 to 14.14.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com>

view details

push time in 4 hours

PR merged cheeriojs/cheerio

Bump @types/node from 14.14.9 to 14.14.10 dependencies

Bumps @types/node from 14.14.9 to 14.14.10. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+3 -3

0 comment

1 changed file

dependabot[bot]

pr closed time in 4 hours

issue commentnvm-sh/nvm

Got several output 'grep: XXX: Is a directory' everytime after opening terminal

Also having this issue, manjaro linux

$ nvm debug

nvm --version: v0.37.1
$SHELL: /usr/bin/zsh
$SHLVL: 1
whoami: 'pauly'
${HOME}: /home/pauly
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${HOME}/.magento-cloud/bin:${HOME}/.phpenv/shims:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/bin:${HOME}/.config/composer/vendor/bin:${HOME}/.phpenv/bin:/usr/local/bin:${HOME}/.yarn/bin:${NVM_DIR}/versions/node/v12.20.0/bin:${HOME}/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:${HOME}/.gem/ruby/2.7.0/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-pc-linux-gnu)'
uname -a: 'Linux 5.9.11-2-MANJARO #1 SMP PREEMPT Tue Nov 24 15:40:17 UTC 2020 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Manjaro Linux   () ()
curl: /usr/bin/curl, curl 7.73.0 (x86_64-pc-linux-gnu) libcurl/7.73.0 OpenSSL/1.1.1h zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
wget: /usr/bin/wget, GNU Wget 1.20.3 built on linux-gnu.
git: /usr/bin/git, git version 2.29.2
ls: cannot access 'grep:': No such file or directory
grep: grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} (grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}), grep (GNU grep) 3.6
awk: /usr/bin/awk, GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.0)
sed: /usr/bin/sed, sed (GNU sed) 4.8
cut: /usr/bin/cut, cut (GNU coreutils) 8.32
basename: /usr/bin/basename, basename (GNU coreutils) 8.32
rm: /usr/bin/rm, rm (GNU coreutils) 8.32
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.32
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.7.0
nvm current: v12.20.0
which node: ${NVM_DIR}/versions/node/v12.20.0/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v12.20.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v12.20.0
npm root -g: ${NVM_DIR}/versions/node/v12.20.0/lib/node_modules
qomosoloto

comment created time in 6 hours

issue openednvm-sh/nvm

ZSH: Getting strange `grep: x: Is a directory` in my terminal, as well as unexpected parsing of files

Operating system and version:

Arch Linux

nvm debug output:

<details> <!-- do not delete the following blank line -->

nvm --version: v0.37.1
$SHELL: /usr/bin/zsh
$SHLVL: 3
whoami: 'xananax'
${HOME}: /home/xananax
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v12.18.4/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-pc-linux-gnu)'
uname -a: 'Linux 5.9.10-arch1-1 #1 SMP PREEMPT Sun, 22 Nov 2020 14:16:59 +0000 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Arch Linux  ()
curl: /usr/bin/curl, curl 7.73.0 (x86_64-pc-linux-gnu) libcurl/7.73.0 OpenSSL/1.1.1h zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
wget: /usr/bin/wget, GNU Wget 1.20.3 built on linux-gnu.
git: /usr/bin/git, git version 2.29.2
ls: cannot access 'grep:': No such file or directory
grep: grep: aliased to grep --color=auto (grep --color=auto), grep (GNU grep) 3.6
awk: /usr/bin/awk, GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.0)
sed: /usr/bin/sed, sed (GNU sed) 4.8
cut: /usr/bin/cut, cut (GNU coreutils) 8.32
basename: /usr/bin/basename, basename (GNU coreutils) 8.32
rm: /usr/bin/rm, rm (GNU coreutils) 8.32
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.32
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.7.0
nvm current: v12.18.4
which node: ${NVM_DIR}/versions/node/v12.18.4/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v12.18.4/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v12.18.4
npm root -g: ${NVM_DIR}/versions/node/v12.18.4/lib/node_modules

</details>

nvm ls output:

<details> <!-- do not delete the following blank line -->

->     v12.18.4
       v14.11.0
         system
default -> lts/* (-> v12.18.4)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v14.11.0) (default)
stable -> 14.11 (-> v14.11.0) (default)
lts/* -> lts/erbium (-> v12.18.4)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.22.1 (-> N/A)
lts/erbium -> v12.18.4

</details>

How did you install nvm?

<!-- (e.g. install script in readme, Homebrew) -->

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:

[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec

What steps did you perform?

I updated the package

What happened?

When I open a terminal, I get:

grep: Desktop: Is a directory
grep: Downloads: Is a directory
...etc

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:

grep: node_modules: Is a directory
grep: out: Is a directory
grep: src: Is a directory
grep: static: Is a directory 
(eval):1: command not found: forge.config.js
nvm is not compatible with the "README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)" environment variable: currently set to ".md:- [](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)"
Run `unset README.md:- [\`forge.config.js\`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)` to unset it.

Of course, the sentence

- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)

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 a config key in `package.json.

> grep -R "forge.config.js" --exclude-dir node_modules
package.json:    "forge": "./forge.config.js"
README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)

If I remove that sentence from the README, then nvm tells me this:

nvm is not compatible with the "package.json:    "forge": "./forge.config.js"" environment variable: currently set to ".json:    forge: ./forge.config.js"

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:

  • if I do not source nvm.sh, and/or
  • if I use bash

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?

<!-- (e.g. .bashrc, .bash_profile, .zshrc, etc) -->

I use Zimfw, but I otherwise don't do anything specific.

created time in 6 hours

issue closednvm-sh/nvm

Spews out a bunch of grep-messages and crashes when encountering gulpfile

<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->

Operating system and version:

macOS Big Sur, 11.0.1

nvm debug output:

<details> <!-- do not delete the following blank line -->

nvm --version: v0.37.1
$TERM_PROGRAM: Apple_Terminal
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'linus'
${HOME}: /Users/linus
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v14.15.1/bin:${HOME}/.pyenv/shims:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-apple-darwin20.0)'
uname -a: 'Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64'
checksum binary: 'shasum'
OS version: macOS 11.0.1 20B50
curl: /usr/bin/curl, curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: rm: aliased to nocorrect rm -i (nocorrect rm -i)
mkdir: mkdir: aliased to nocorrect mkdir -p (nocorrect mkdir -p)
xargs: /usr/bin/xargs
ls: /usr/local/bin/git
/usr/bin/git: No such file or directory
git: /usr/local/bin/git
/usr/bin/git, git version 2.29.2
ls: grep:: No such file or directory
grep: grep: aliased to nocorrect grep --color=auto (nocorrect grep --color=auto), grep (BSD grep) 2.5.1-FreeBSD
awk: /usr/bin/awk, awk version 20200816
nvm current: v14.15.1
which node: ${NVM_DIR}/versions/node/v14.15.1/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v14.15.1/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v14.15.1
npm root -g: ${NVM_DIR}/versions/node/v14.15.1/lib/node_modules

</details>

nvm ls output:

<details> <!-- do not delete the following blank line -->

->     v14.15.1
         system
default -> lts/* (-> v14.15.1)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v14.15.1) (default)
stable -> 14.15 (-> v14.15.1) (default)
lts/* -> lts/fermium (-> v14.15.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.23.0 (-> N/A)
lts/erbium -> v12.20.0 (-> N/A)
lts/fermium -> v14.15.1

</details>

How did you install nvm?

<!-- (e.g. install script in readme, Homebrew) --> Homebrew

What steps did you perform?

Started macOS Terminal, also tested in VS Code integrated terminal.

What happened?

In macOS Terminal i get the following when starting.

grep: Desktop: Is a directory
grep: Development: Is a directory
grep: Documents: Is a directory
grep: Downloads: Is a directory
grep: Från backup: Is a directory
grep: Library: Is a directory
grep: Movies: Is a directory
grep: Music: Is a directory
grep: Pictures: Is a directory
grep: Public: Is a directory

When starting integrated terminal in VS Code I get:

grep: experiment: Is a directory
grep: node_modules: Is a directory
grep: src: Is a directory
nvm is not compatible with the "gulpfile.js:        .pipe(dest('dist/css'))" environment variable: currently set to ".js:        .pipe(dest('dist/css'))"
Run `unset gulpfile.js:        .pipe(dest('dist/css'))` to unset it.

What did you expect to happen?

I expected nvm to work and not throw a bunch of garbage.

Is there anything in any of your profile files that modifies the PATH?

<!-- (e.g. .bashrc, .bash_profile, .zshrc, etc) --> zsh with Prezto installed, pyenv.

closed time in 7 hours

Limpan

issue commentnvm-sh/nvm

Spews out a bunch of grep-messages and crashes when encountering gulpfile

@ljharb Yes, sorry I missed that one!

Limpan

comment created time in 8 hours

issue commentnvm-sh/nvm

Got several output 'grep: XXX: Is a directory' everytime after opening terminal

@ljharb Yes, sorry that I missed that!

qomosoloto

comment created time in 8 hours

issue commentnvm-sh/nvm

Installation instructions "break" zsh on Mac

That sounds like a great idea - a PR would be appreciated!

seishun

comment created time in 10 hours

issue commentlodash/lodash

Specials chars removed

Removing non-ascii characters is probably understood but if input to startCase is Mr. John, it returns Mr John. Is it indeed expected? @jdalton @jashkenas

lokomass

comment created time in 10 hours

issue commentnvm-sh/nvm

Installation instructions "break" zsh on Mac

So apparently Homebrew breaks permissions on those two directories, but the issue becomes apparent after running nvm install script. Since this might happen to other people installing nvm, it would be helpful to mention it in the readme so that they don't have to wonder what they did wrong and then spend a lot of time figuring out the right solution.

seishun

comment created time in 10 hours

issue commentnvm-sh/nvm

Installation instructions "break" zsh on Mac

Those are your own dirs, not nvm’s - it seems like https://github.com/zsh-users/zsh-completions/issues/680 is the cause, and a few solutions are listed. Does that solve the problem?

seishun

comment created time in 10 hours

issue openeduNetworking/uWebSockets

Print warnings on not being able to load certificates

I have an SSL app, which ran but all SSL connections failed as the certificates were with incorrect permissions (system admin had messed up).

Knowing that the problem was with the loading of certificates would have been helpful to debug. It took us really long to figure out it was a file issue and not an OpenSSL version issue.
Is there a way to have debug information with the library, so we can catch errors like this?

Thanks, Aisha

created time in 11 hours

issue commentnvm-sh/nvm

Got several output 'grep: XXX: Is a directory' everytime after opening terminal

Sounds like i need to revert #2347 ASAP; I’ll do that and cut a release today. @mdwint, we’ll need to reopen a PR to try to fix the original issue, but add a regression test to cover this case too.

qomosoloto

comment created time in 11 hours

issue commentnvm-sh/nvm

Spews out a bunch of grep-messages and crashes when encountering gulpfile

This seems like a duplicate of #2360?

Limpan

comment created time in 11 hours

issue openednvm-sh/nvm

Spews out a bunch of grep-messages and crashes when encountering gulpfile

<!-- Thank you for being interested in nvm! Please help us by filling out the following form if you‘re having trouble. If you have a feature request, or some other question, please feel free to clear out the form. Thanks! -->

Operating system and version:

macOS Big Sur, 11.0.1

nvm debug output:

<details> <!-- do not delete the following blank line -->

nvm --version: v0.37.1
$TERM_PROGRAM: Apple_Terminal
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'linus'
${HOME}: /Users/linus
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v14.15.1/bin:${HOME}/.pyenv/shims:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-apple-darwin20.0)'
uname -a: 'Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64'
checksum binary: 'shasum'
OS version: macOS 11.0.1 20B50
curl: /usr/bin/curl, curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: rm: aliased to nocorrect rm -i (nocorrect rm -i)
mkdir: mkdir: aliased to nocorrect mkdir -p (nocorrect mkdir -p)
xargs: /usr/bin/xargs
ls: /usr/local/bin/git
/usr/bin/git: No such file or directory
git: /usr/local/bin/git
/usr/bin/git, git version 2.29.2
ls: grep:: No such file or directory
grep: grep: aliased to nocorrect grep --color=auto (nocorrect grep --color=auto), grep (BSD grep) 2.5.1-FreeBSD
awk: /usr/bin/awk, awk version 20200816
nvm current: v14.15.1
which node: ${NVM_DIR}/versions/node/v14.15.1/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v14.15.1/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v14.15.1
npm root -g: ${NVM_DIR}/versions/node/v14.15.1/lib/node_modules

</details>

nvm ls output:

<details> <!-- do not delete the following blank line -->

->     v14.15.1
         system
default -> lts/* (-> v14.15.1)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v14.15.1) (default)
stable -> 14.15 (-> v14.15.1) (default)
lts/* -> lts/fermium (-> v14.15.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.23.0 (-> N/A)
lts/erbium -> v12.20.0 (-> N/A)
lts/fermium -> v14.15.1

</details>

How did you install nvm?

<!-- (e.g. install script in readme, Homebrew) --> Homebrew

What steps did you perform?

Started macOS Terminal, also tested in VS Code integrated terminal.

What happened?

In macOS Terminal i get the following when starting.

grep: Desktop: Is a directory
grep: Development: Is a directory
grep: Documents: Is a directory
grep: Downloads: Is a directory
grep: Från backup: Is a directory
grep: Library: Is a directory
grep: Movies: Is a directory
grep: Music: Is a directory
grep: Pictures: Is a directory
grep: Public: Is a directory

When starting integrated terminal in VS Code I get:

grep: experiment: Is a directory
grep: node_modules: Is a directory
grep: src: Is a directory
nvm is not compatible with the "gulpfile.js:        .pipe(dest('dist/css'))" environment variable: currently set to ".js:        .pipe(dest('dist/css'))"
Run `unset gulpfile.js:        .pipe(dest('dist/css'))` to unset it.

What did you expect to happen?

I expected nvm to work and not throw a bunch of garbage.

Is there anything in any of your profile files that modifies the PATH?

<!-- (e.g. .bashrc, .bash_profile, .zshrc, etc) --> zsh with Prezto installed, nothing fancy.

created time in 13 hours

startedsulami/literate-calc-mode.el

started time in 15 hours

startedopencypher/cypher-for-gremlin

started time in 16 hours

issue commentnvm-sh/nvm

Got several output 'grep: XXX: Is a directory' everytime after opening terminal

@zhengdai Did you run command env inside of nvm.sh, right above the line you changed?

I don't understand how changing the ^ could have had an impact if command env doesn't even output any possible matches.

qomosoloto

comment created time in 16 hours

startedopencypher/openCypher

started time in 16 hours

issue commentnvm-sh/nvm

Got several output 'grep: XXX: Is a directory' everytime after opening terminal

@zhengdai What's the output of command env?

TERM_SESSION_ID=w0t2p0:12B5D2DB-541F-43A2-B8C0-EBB9F752B78F SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.TSYOKXRhk9/Listeners LC_TERMINAL_VERSION=3.4.2 COLORFGBG=7;0 ITERM_PROFILE=Default SQLITE_EXEMPT_PATH_FROM_VNODE_GUARDS=/Users/zhengdai/Library/WebKit/Databases XPC_FLAGS=0x0 LANG=zh_CN.UTF-8 PWD=/Users/zhengdai SHELL=/bin/zsh __CFBundleIdentifier=com.googlecode.iterm2 SECURITYSESSIONID=186a9 TERM_PROGRAM_VERSION=3.4.2 TERM_PROGRAM=iTerm.app PATH=/Users/zhengdai/.nvm/versions/node/v15.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zhengdai/project/go/bin:/usr/local/opt/fzf/bin LC_TERMINAL=iTerm2 COLORTERM=truecolor COMMAND_MODE=unix2003 TERM=xterm-256color HOME=/Users/zhengdai TMPDIR=/var/folders/1n/sd9vsnzx0_75d_7xhr9w12cr0000gn/T/ USER=zhengdai XPC_SERVICE_NAME=0 LOGNAME=zhengdai LaunchInstanceID=41CDF862-97BC-4805-9D4C-4053564340BE __CF_USER_TEXT_ENCODING=0x0:25:52 ITERM_SESSION_ID=w0t2p0:12B5D2DB-541F-43A2-B8C0-EBB9F752B78F SHLVL=1 OLDPWD=/Users/zhengdai BROWSER=open EDITOR=vim VISUAL=nano PAGER=less LESS=-F -g -i -M -R -S -w -X -z-4 ZSH=/Users/zhengdai/.oh-my-zsh LSCOLORS=Gxfxcxdxbxegedabagacad ZNT_REPO_DIR=/Users/zhengdai/.oh-my-zsh/plugins/zsh-navigation-tools ZNT_CONFIG_DIR=/Users/zhengdai/.config/znt JAVA_8_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home JAVA_15_HOME=/usr/local/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Home JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home GO111MODULE=on GOPROXY=https://goproxy.cn GOPATH=/Users/zhengdai/project/go LESS_TERMCAP_mb= LESS_TERMCAP_md= LESS_TERMCAP_me= LESS_TERMCAP_se= LESS_TERMCAP_so= LESS_TERMCAP_ue= LESS_TERMCAP_us= LS_COLORS=di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07: GREP_COLOR=37;45 GREP_COLORS=mt=37;45 NVM_DIR=/Users/zhengdai/.nvm NVM_CD_FLAGS=-q NVM_BIN=/Users/zhengdai/.nvm/versions/node/v15.3.0/bin NVM_INC=/Users/zhengdai/.nvm/versions/node/v15.3.0/include/node NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node _=/usr/bin/env

qomosoloto

comment created time in 17 hours

issue commentnvm-sh/nvm

Installation instructions "break" zsh on Mac

There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh
seishun

comment created time in 18 hours

more