lib/commands/env.js
function readLinkRecursive(path, seen) {
  seen = seen || [];

  seen.push(p.dirname(path));

  var next = readLink(path);

  trace('recur', seen, next);

  if (!next) {
    seen.push(p.basename(path));
    return seen;
  }
  return readLinkRecursive(next, seen);
}
function readLinkRecursive(path, seen) {
  seen = seen || [];

  seen.push(p.dirname(path));

  var next = readLink(path);

  trace('recur', seen, next);

  if (!next) {
    seen.push(p.basename(path));
    return seen;
  }
  return readLinkRecursive(next, seen);
}
function readLinkRecursive ( path , seen ) { seen = seen || [ ] ; seen . push ( p . dirname ( path ) ) ; var next = readLink ( path ) ; trace ( 'recur' , seen , next ) ; if ( ! next ) { seen . push ( p . basename ( path ) ) ; return seen ; } return readLinkRecursive ( next , seen ) ; }
read link, recursively, return array of links seen up to final path
read link recursively return array of links seen up to final path