1. Nov 01, 2023
  2. Oct 23, 2023
  3. Oct 25, 2023
  4. Oct 23, 2023
  5. Oct 20, 2023
  6. Oct 06, 2023
  7. Oct 09, 2023
  8. Sep 19, 2023
  9. Sep 18, 2023
  10. Aug 26, 2023
  11. Aug 22, 2023
  12. Jun 21, 2023
    • Oliver Henshaw's avatar
      [Fix] `nvm_strip_path`: Preserve leading/trailing colons · 15eba7b7
      Oliver Henshaw authored
      Path lists in environmental variables often give special meaning to
      empty entries (e.g. in PATH or MANPATH). These are represented by
      leading or trailing colons, or by doubled colons in the middle of the
      list.
      
      Adjust the awk invocation to correctly deal with trailing colons by
      printing the separator before every field except the first, and then
      printing the final separator that is read from the input - this will
      either be a colon or the null string. This preserves leading and
      trailing colons in all cases while not adding extra colons in the wrong
      place.
      
      Add test to confirm the correct behaviour.
      
      Fixes #3144
      Unverified
      15eba7b7
  13. Jul 20, 2023
  14. Aug 06, 2023
  15. Dec 28, 2022
  16. Jul 26, 2023
  17. Jul 25, 2023
  18. Apr 15, 2020
  19. Jun 18, 2023
  20. Jun 05, 2023
  21. Apr 25, 2023
  22. May 01, 2023
  23. Apr 29, 2023
  24. Apr 22, 2023
    • Spike Grobstein's avatar
      [Fix] `nvm exec`: no longer error with '-q: invalid option' for zsh users · 70aa611a
      Spike Grobstein authored
      the `nvm.sh` file assigns and exports an `NVM_CD_FLAGS` variable if it
      was sourced from a zsh shell. the fact that it's exported means that
      it'll be assigned in all child processes, including the `nvm-exec`
      script, which uses bash as the interpreter.
      
      Bash's `cd` command doesn't have a `-q` flag, so if the `NVM_CD_FLAGS`
      is assigned `-q`, the script will error out and incorrectly claim that
      the node version isn't installed.
      
      this also manifests itself in the `nvm exec` command.
      
      Example:
      
      ```console
      $ nvm exec 16.14.0 npm --version
      Running node v16.14.0 (npm v8.3.1)
      /Users/<ME>/.nvm/nvm.sh: line 28: cd: -q: invalid option
      cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
      both the tree and the node path are required
      N/A: version "v16.14.0 -> N/A" is not yet installed.
      
      You need to run "nvm install v16.14.0" to install it before using it.
      ```
      
      To address this, we unset the `NVM_CD_FLAGS` at the start of the
      `nvm-exec` script, before loading `nvm.sh`.
      Unverified
      70aa611a
  25. Apr 28, 2023
  26. Apr 09, 2023
  27. Apr 08, 2023
  28. Apr 05, 2023
  29. Apr 06, 2023
  30. Apr 03, 2023
  31. Mar 22, 2023
  32. Mar 10, 2023