Skip to content
Myr

[Fix] set IFS to default for all nvm commands.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #1227. Fixes #1244. Fixes #1514. Fixes #1518.

authored by Jordan Harband · committed by Jordan Harband · parent accd6ae · Browse files · 2 files+26 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+26 added−0 removed

  • tests:+18 added−0 removed
  • other:+8 added−0 removed

2 files+26 added−0 removed

added:test/fast/Listing versions/Using a nonstandard IFS should not break+18 added
1#!/bin/sh23\. ../../../nvm.sh45mkdir "${NVM_DIR}/v0.0.1"6mkdir "${NVM_DIR}/v0.0.3"7mkdir "${NVM_DIR}/v0.0.9"8mkdir "${NVM_DIR}/v0.3.1"9mkdir "${NVM_DIR}/v0.3.3"10mkdir "${NVM_DIR}/v0.3.9"11mkdir -p "${NVM_DIR}/versions/node/v0.12.87"12mkdir -p "${NVM_DIR}/versions/node/v0.12.9"13mkdir -p "${NVM_DIR}/versions/io.js/v0.1.2"14mkdir -p "${NVM_DIR}/versions/io.js/v0.10.2"1516set -e1718IFS='' nvm ls
modified:nvm.sh+8 added
2161 unmodified lines
2162 nvm --help2163 return2164 fi21652166 local DEFAULT_IFS2167 DEFAULT_IFS=" $(echo t | tr t \\t)2168"2169 if [ "${IFS}" != "${DEFAULT_IFS}" ]; then2170 IFS="${DEFAULT_IFS}" nvm "$@"2171 return $?2172 fi21732174 local COMMAND2175 COMMAND="${1-}"2176 shift2177
1179 unmodified lines